mfd: kempld: Drop duplicate NULL check in ->exit()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 23 Feb 2024 19:49:54 +0000 (21:49 +0200)
committerLee Jones <lee@kernel.org>
Fri, 10 May 2024 14:39:16 +0000 (15:39 +0100)
commitde584f72ce1035b2c32351d56f3d6c147e382e37
treecc8adbf80fd7cc1fe6d3032eceefb2a1f586e7bd
parentf197c75fe0dc5bc472973207bb193a0f6ac1e264
mfd: kempld: Drop duplicate NULL check in ->exit()

Since platform_device_unregister() is NULL-aware, we don't need
to duplicate this check. Remove it and fold the rest of the code.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20240223195113.880121-6-andriy.shevchenko@linux.intel.com
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/mfd/kempld-core.c