Skip to content
Commit 2a7d9688 authored by Pierce Griffiths's avatar Pierce Griffiths Committed by Paul E. McKenney
Browse files

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: default avatarPierce Griffiths <pierceagriffiths@gmail.com>
Signed-off-by: default avatarPaul E. McKenney <paulmck@linux.ibm.com>
parent 5ab7ab83
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment