aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/gasket/gasket_core.h
diff options
context:
space:
mode:
authorTodd Poynor <toddpoynor@google.com>2018-07-17 13:56:52 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-07-19 11:39:47 +0200
commita42ea3d61c65946f7ccb1fbba7361e31eb367026 (patch)
tree19c272409f8750b443de16e96707b493ce7c2009 /drivers/staging/gasket/gasket_core.h
parentstaging: gasket: gasket_wait_with_reschedule use msleep (diff)
downloadlinux-dev-a42ea3d61c65946f7ccb1fbba7361e31eb367026.tar.xz
linux-dev-a42ea3d61c65946f7ccb1fbba7361e31eb367026.zip
staging: gasket: gasket_wait_with_reschedule simplify logic
gasket_wait_with_reschedule() is a little more clear if we just return directly when the waited-for condition is hit. This also allows the following condition check to be removed and identation of the conditionally-executed code to be reduced. Reported-by: Dmitry Torokhov <dtor@chromium.org> Signed-off-by: Zhongze Hu <frankhu@chromium.org> Signed-off-by: Todd Poynor <toddpoynor@google.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/gasket/gasket_core.h')
0 files changed, 0 insertions, 0 deletions