]> git.baikalelectronics.ru Git - kernel.git/commit
bus: bt1-axi: Optimize the return points in the driver
authorBaikal Electronics <support@baikalelectronics.ru>
Thu, 28 May 2020 14:50:49 +0000 (17:50 +0300)
committerArnd Bergmann <arnd@arndb.de>
Thu, 28 May 2020 14:57:05 +0000 (16:57 +0200)
commitf5de11e657288e9826ca8d67a9df20a6308d3aa2
treed09717927356a597da526497317f91275a2e92f5
parent88d8416bcc1eca1f14dbd69893a54bba99b2907a
bus: bt1-axi: Optimize the return points in the driver

It's better to have a single return statement where it's applicable
instead of returning from a conditional statement if-clause. Let's
do this in the request registers, clock and IRQ methods.

Link: https://lore.kernel.org/r/20200528145050.5203-5-Sergey.Semin@baikalelectronics.ru
Signed-off-by: Serge Semin <Sergey.Semin@baikalelectronics.ru>
Cc: Alexey Malahov <Alexey.Malahov@baikalelectronics.ru>
Cc: Olof Johansson <olof@lixom.net>
Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: soc@kernel.org
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
drivers/bus/bt1-axi.c