diff options
author | Pierce Griffiths <pierceagriffiths@gmail.com> | 2018-09-21 20:21:31 -0500 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.ibm.com> | 2018-12-01 12:45:35 -0800 |
commit | 2a7d968816a94a4c52f0082c085c6714a5b3f1ec (patch) | |
tree | 71a763e86bdfc46e50f2f620a29f9f6cdc4e3909 /kernel/rcu/rcutorture.c | |
parent | 5ab7ab8362fa8a4f7995d65ea05edf71530e8004 (diff) | |
download | lwn-2a7d968816a94a4c52f0082c085c6714a5b3f1ec.tar.gz lwn-2a7d968816a94a4c52f0082c085c6714a5b3f1ec.zip |
torture: Remove unnecessary "ret" variables
Remove return variables (declared as "ret") in cases where,
depending on whether a condition evaluates as true, the result of a
function call can be immediately returned instead of storing the result in
the return variable. When the condition evaluates as false, the constant
initially stored in the return variable at declaration is returned instead.
Signed-off-by: Pierce Griffiths <pierceagriffiths@gmail.com>
Signed-off-by: Paul E. McKenney <paulmck@linux.ibm.com>
Diffstat (limited to 'kernel/rcu/rcutorture.c')
0 files changed, 0 insertions, 0 deletions