Staging: Lustre: lproc_fid: remove some dead code
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 5 Jun 2015 09:23:31 +0000 (12:23 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Jun 2015 19:39:01 +0000 (12:39 -0700)
We know "rc == 0" so there is no need to check.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/fid/lproc_fid.c

index 41ab2eeaf18c7cb65e5875bdc46e21637b5429a9..cc2201c25339ba9df389084c4e8bfe7ddef743e7 100644 (file)
@@ -157,10 +157,8 @@ ldebugfs_fid_width_seq_write(struct file *file,
        if (val <= max && val > 0) {
                seq->lcs_width = val;
 
-               if (rc == 0) {
-                       CDEBUG(D_INFO, "%s: Sequence size: %llu\n",
-                              seq->lcs_name, seq->lcs_width);
-               }
+               CDEBUG(D_INFO, "%s: Sequence size: %llu\n", seq->lcs_name,
+                      seq->lcs_width);
        }
 
        mutex_unlock(&seq->lcs_mutex);