torture: Remove unnecessary "ret" variables
authorPierce Griffiths <pierceagriffiths@gmail.com>
Sat, 22 Sep 2018 01:21:31 +0000 (20:21 -0500)
committerPaul E. McKenney <paulmck@linux.ibm.com>
Sat, 1 Dec 2018 20:45:35 +0000 (12:45 -0800)
commit2a7d968816a94a4c52f0082c085c6714a5b3f1ec
tree71a763e86bdfc46e50f2f620a29f9f6cdc4e3909
parent5ab7ab8362fa8a4f7995d65ea05edf71530e8004
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>
kernel/torture.c