summaryrefslogtreecommitdiff
path: root/drivers/staging/lustre
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2015-06-05 12:23:31 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-06-08 12:39:01 -0700
commit1c01737a4b6450553cc2fd387b27847d408ca936 (patch)
tree6f844a9de8ed7f8873292d26f4da5ccc0d3c96fd /drivers/staging/lustre
parentb815555df8ede8aca07ff72d3fbe7727a008620e (diff)
Staging: Lustre: lproc_fid: remove some dead code
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>
Diffstat (limited to 'drivers/staging/lustre')
-rw-r--r--drivers/staging/lustre/lustre/fid/lproc_fid.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/staging/lustre/lustre/fid/lproc_fid.c b/drivers/staging/lustre/lustre/fid/lproc_fid.c
index 41ab2eeaf18c..cc2201c25339 100644
--- a/drivers/staging/lustre/lustre/fid/lproc_fid.c
+++ b/drivers/staging/lustre/lustre/fid/lproc_fid.c
@@ -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);