From: Oleg Drokin Date: Fri, 12 Jun 2015 13:48:13 +0000 (-0400) Subject: LU-6514 fid: remove misleading rc check in lprocfs_client_fid_width_seq_write X-Git-Tag: 2.7.56~21 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=07660179a32649e54228da26e34674f48318cbd7;ds=sidebyside LU-6514 fid: remove misleading rc check in lprocfs_client_fid_width_seq_write At the very end of lprocfs_client_fid_width_seq_write in the success path there is a very misleading rc check thta not only is out of place, but also causes the reader to think what was the goal there. It's after we already assign the requested variable too and only controls the debug print. Change-Id: I89b020b85bd8948c859fc3703f716ad8def387e1 Signed-off-by: Oleg Drokin Reviewed-on: http://review.whamcloud.com/14604 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: James Simmons Reviewed-by: Dmitry Eremin Reviewed-by: frank zago --- diff --git a/lustre/fid/lproc_fid.c b/lustre/fid/lproc_fid.c index bacaa8e..aa16d81 100644 --- a/lustre/fid/lproc_fid.c +++ b/lustre/fid/lproc_fid.c @@ -573,10 +573,8 @@ lprocfs_client_fid_width_seq_write(struct file *file, const char __user *buffer, if (val <= max && val > 0) { seq->lcs_width = val; - if (rc == 0) { - CDEBUG(D_INFO, "%s: Sequence size: "LPU64"\n", - seq->lcs_name, seq->lcs_width); - } + CDEBUG(D_INFO, "%s: Sequence size: "LPU64"\n", + seq->lcs_name, seq->lcs_width); } mutex_unlock(&seq->lcs_mutex);