]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfc4a75da1f4032e0ff28778574d063a246847dc1
treef90a4ae17095a177a1678b98c76a2a3cbe0c98cf
parent6a605857c6f2c464d7c39c2b0346b9c9a59006c8
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