staging: gasket: apex_clock_gating simplify logic, reduce indentation
authorTodd Poynor <toddpoynor@google.com>
Fri, 20 Jul 2018 03:49:08 +0000 (20:49 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 21 Jul 2018 06:50:35 +0000 (08:50 +0200)
commit9116223b84da485735b495bda6c35b43f005d222
treef90a4ae17095a177a1678b98c76a2a3cbe0c98cf
parente80d8afc97fb243833d9939b5098a89379433b3c
staging: gasket: apex_clock_gating simplify logic, reduce indentation

Collapse together two checks and return immediately, avoid conditional
indentation for most of function code.

Reported-by: Guenter Roeck <groeck@chromium.org>
Signed-off-by: Simon Que <sque@chromium.org>
Signed-off-by: Todd Poynor <toddpoynor@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/gasket/apex_driver.c