Commit 1c01737a authored by Dan Carpenter's avatar Dan Carpenter Committed by Greg Kroah-Hartman

Staging: Lustre: lproc_fid: remove some dead code

We know "rc == 0" so there is no need to check.
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b815555d
...@@ -157,10 +157,8 @@ ldebugfs_fid_width_seq_write(struct file *file, ...@@ -157,10 +157,8 @@ ldebugfs_fid_width_seq_write(struct file *file,
if (val <= max && val > 0) { if (val <= max && val > 0) {
seq->lcs_width = val; seq->lcs_width = val;
if (rc == 0) { CDEBUG(D_INFO, "%s: Sequence size: %llu\n", seq->lcs_name,
CDEBUG(D_INFO, "%s: Sequence size: %llu\n", seq->lcs_width);
seq->lcs_name, seq->lcs_width);
}
} }
mutex_unlock(&seq->lcs_mutex); mutex_unlock(&seq->lcs_mutex);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment