staging: lustre: Fix checkpatch.pl spacing-related errors
authorTina Ruchandani <ruchandani.tina@gmail.com>
Wed, 22 Oct 2014 05:13:21 +0000 (22:13 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Oct 2014 03:09:12 +0000 (11:09 +0800)
This patch fixes misc. spacing errors reported by
checkpatch.pl for lustre/llite/file.c

Signed-off-by: Tina Ruchandani <ruchandani.tina@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/llite/file.c

index f1f75c7edee0172b5e854e9af0f57a6aa6b4b57e..a5acc98a1c997d5fffbb749f76bd5a7d57fef88f 100644 (file)
@@ -247,7 +247,7 @@ int ll_md_real_close(struct inode *inode, fmode_t fmode)
                return 0;
        }
 
-       och=*och_p;
+       och = *och_p;
        *och_p = NULL;
        mutex_unlock(&lli->lli_och_mutex);
 
@@ -297,7 +297,8 @@ static int ll_md_close(struct obd_export *md_exp, struct inode *inode,
                __u64 flags = LDLM_FL_BLOCK_GRANTED | LDLM_FL_TEST_LOCK;
                struct lustre_handle lockh;
                struct inode *inode = file->f_dentry->d_inode;
-               ldlm_policy_data_t policy = {.l_inodebits={MDS_INODELOCK_OPEN}};
+               ldlm_policy_data_t policy = {
+                .l_inodebits = {MDS_INODELOCK_OPEN} };
 
                mutex_lock(&lli->lli_och_mutex);
                if (fd->fd_omode & FMODE_WRITE) {
@@ -2866,7 +2867,7 @@ ldlm_mode_t ll_take_md_lock(struct inode *inode, __u64 bits,
                            struct lustre_handle *lockh, __u64 flags,
                            ldlm_mode_t mode)
 {
-       ldlm_policy_data_t policy = { .l_inodebits = {bits}};
+       ldlm_policy_data_t policy = { .l_inodebits = {bits} };
        struct lu_fid *fid;
        ldlm_mode_t rc;