staging : lustre : lustre : fid : lproc_fid.c: fixed warning
authorAnil Belur <askb23@gmail.com>
Thu, 19 Jun 2014 07:29:01 +0000 (17:29 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 20 Jun 2014 00:22:24 +0000 (17:22 -0700)
fixed warning for line over 80 characters by moving the initilation
onto a diff line.

Signed-off-by: Anil Belur <askb23@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/fid/lproc_fid.c

index 6f5674d1aa7255c4b07b765405e8ba471c1466e3..20078df5f3779ec7e607cbd28afa651c65165ac9 100644 (file)
@@ -98,9 +98,10 @@ static ssize_t lprocfs_fid_space_seq_write(struct file *file,
                                           const char __user *buffer,
                                           size_t count, loff_t *off)
 {
-       struct lu_client_seq *seq = ((struct seq_file *)file->private_data)->private;
+       struct lu_client_seq *seq;
        int rc;
 
+       seq = ((struct seq_file *)file->private_data)->private;
        LASSERT(seq != NULL);
 
        mutex_lock(&seq->lcs_mutex);
@@ -135,10 +136,11 @@ static ssize_t lprocfs_fid_width_seq_write(struct file *file,
                                           const char __user *buffer,
                                           size_t count, loff_t *off)
 {
-       struct lu_client_seq *seq = ((struct seq_file *)file->private_data)->private;
+       struct lu_client_seq *seq;
        __u64  max;
        int rc, val;
 
+       seq = ((struct seq_file *)file->private_data)->private;
        LASSERT(seq != NULL);
 
        rc = lprocfs_write_helper(buffer, count, &val);