bus: bt1-axi: Optimize the return points in the driver
authorSerge Semin <Sergey.Semin@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)
commit7f57416f2aebe6f8b6ad105b4ca58b347fb2dd2c
treed09717927356a597da526497317f91275a2e92f5
parentb7cb430d5f11b24c1c5809ab46a098ff299b975f
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