summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorShivani Bhardwaj <shivanib134@gmail.com>2015-10-16 01:36:31 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-10-16 22:34:06 -0700
commitfea6fc647b589e5954330f1f0497b6de59b7fe01 (patch)
tree96b958f22ba22439c941250323c9af8ce8aba25d /tools/perf/scripts/python
parent673536c9880867e7d9bacd261c423ee953bf4392 (diff)
downloadlinux-fea6fc647b589e5954330f1f0497b6de59b7fe01.tar.gz
linux-fea6fc647b589e5954330f1f0497b6de59b7fe01.zip
Staging: lustre: lproc_osc: Change the variable to be checked
The variable rc is supposed to hold the value returned by function kstrtoul which can either be 0, -EINVAL (-22) or -ERANGE (-34). Therefore, the check must be performed on rc instead of val for error values. Also, rc can never be greater than 0. Signed-off-by: Shivani Bhardwaj <shivanib134@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions