]> git.baikalelectronics.ru Git - kernel.git/commit
staging: gasket: gasket_wait_with_reschedule simplify logic
authorTodd Poynor <toddpoynor@google.com>
Tue, 17 Jul 2018 20:56:52 +0000 (13:56 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jul 2018 09:39:47 +0000 (11:39 +0200)
commit2f3f936c9ab4a78c2b0a918959dcecfaa3f96435
tree19c272409f8750b443de16e96707b493ce7c2009
parent7c0dc094e72d865a0b1cd9feff82168b529118b9
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>
drivers/staging/gasket/gasket_core.c