leds: lgm-sso: Drop duplicate NULL check for GPIO operations
authorAndy Shevchenko <andy.shevchenko@gmail.com>
Mon, 10 May 2021 09:50:29 +0000 (12:50 +0300)
committerPavel Machek <pavel@ucw.cz>
Fri, 28 May 2021 10:00:01 +0000 (12:00 +0200)
commitf3e2b3825ffb034b001fbe283d7a32a56e41aca7
tree4d315881247fc1175ec2ed8105c73b3f1c048faf
parent2cbbe9c50d13b6417e0baf8e8475ed73d4d12c2d
leds: lgm-sso: Drop duplicate NULL check for GPIO operations

Since GPIO operations are NULL-aware, we don't need to duplicate
this check. Remove it and fold the rest of the code.

Signed-off-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Pavel Machek <pavel@ucw.cz>
drivers/leds/blink/leds-lgm-sso.c