staging:lustre:lnet: lib-md.c delete space before '(' for code style
Silences the following checkpatch warning: WARNING: space prohibited between function name and open parenthesis '(' Signed-off-by: Janet Liu <jianhua.ljh@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
6cc9e6124d
commit
fc8b040d5b
1 changed files with 9 additions and 9 deletions
|
@ -109,7 +109,7 @@ lnet_md_build(lnet_libmd_t *lmd, lnet_md_t *umd, int unlink)
|
||||||
|
|
||||||
lmd->md_niov = niov = umd->length;
|
lmd->md_niov = niov = umd->length;
|
||||||
memcpy(lmd->md_iov.iov, umd->start,
|
memcpy(lmd->md_iov.iov, umd->start,
|
||||||
niov * sizeof (lmd->md_iov.iov[0]));
|
niov * sizeof(lmd->md_iov.iov[0]));
|
||||||
|
|
||||||
for (i = 0; i < (int)niov; i++) {
|
for (i = 0; i < (int)niov; i++) {
|
||||||
/* We take the base address on trust */
|
/* We take the base address on trust */
|
||||||
|
@ -129,7 +129,7 @@ lnet_md_build(lnet_libmd_t *lmd, lnet_md_t *umd, int unlink)
|
||||||
} else if ((umd->options & LNET_MD_KIOV) != 0) {
|
} else if ((umd->options & LNET_MD_KIOV) != 0) {
|
||||||
lmd->md_niov = niov = umd->length;
|
lmd->md_niov = niov = umd->length;
|
||||||
memcpy(lmd->md_iov.kiov, umd->start,
|
memcpy(lmd->md_iov.kiov, umd->start,
|
||||||
niov * sizeof (lmd->md_iov.kiov[0]));
|
niov * sizeof(lmd->md_iov.kiov[0]));
|
||||||
|
|
||||||
for (i = 0; i < (int)niov; i++) {
|
for (i = 0; i < (int)niov; i++) {
|
||||||
/* We take the page pointer on trust */
|
/* We take the page pointer on trust */
|
||||||
|
@ -263,15 +263,15 @@ int
|
||||||
LNetMDAttach(lnet_handle_me_t meh, lnet_md_t umd,
|
LNetMDAttach(lnet_handle_me_t meh, lnet_md_t umd,
|
||||||
lnet_unlink_t unlink, lnet_handle_md_t *handle)
|
lnet_unlink_t unlink, lnet_handle_md_t *handle)
|
||||||
{
|
{
|
||||||
LIST_HEAD (matches);
|
LIST_HEAD(matches);
|
||||||
LIST_HEAD (drops);
|
LIST_HEAD(drops);
|
||||||
struct lnet_me *me;
|
struct lnet_me *me;
|
||||||
struct lnet_libmd *md;
|
struct lnet_libmd *md;
|
||||||
int cpt;
|
int cpt;
|
||||||
int rc;
|
int rc;
|
||||||
|
|
||||||
LASSERT (the_lnet.ln_init);
|
LASSERT(the_lnet.ln_init);
|
||||||
LASSERT (the_lnet.ln_refcount > 0);
|
LASSERT(the_lnet.ln_refcount > 0);
|
||||||
|
|
||||||
if (lnet_md_validate(&umd) != 0)
|
if (lnet_md_validate(&umd) != 0)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
@ -347,8 +347,8 @@ LNetMDBind(lnet_md_t umd, lnet_unlink_t unlink, lnet_handle_md_t *handle)
|
||||||
int cpt;
|
int cpt;
|
||||||
int rc;
|
int rc;
|
||||||
|
|
||||||
LASSERT (the_lnet.ln_init);
|
LASSERT(the_lnet.ln_init);
|
||||||
LASSERT (the_lnet.ln_refcount > 0);
|
LASSERT(the_lnet.ln_refcount > 0);
|
||||||
|
|
||||||
if (lnet_md_validate(&umd) != 0)
|
if (lnet_md_validate(&umd) != 0)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
@ -416,7 +416,7 @@ EXPORT_SYMBOL(LNetMDBind);
|
||||||
* \retval -ENOENT If \a mdh does not point to a valid MD object.
|
* \retval -ENOENT If \a mdh does not point to a valid MD object.
|
||||||
*/
|
*/
|
||||||
int
|
int
|
||||||
LNetMDUnlink (lnet_handle_md_t mdh)
|
LNetMDUnlink(lnet_handle_md_t mdh)
|
||||||
{
|
{
|
||||||
lnet_event_t ev;
|
lnet_event_t ev;
|
||||||
lnet_libmd_t *md;
|
lnet_libmd_t *md;
|
||||||
|
|
Loading…
Add table
Reference in a new issue