Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Andy Shevchenko and committed by
Lee Jones
de584f72 f197c75f

+1 -3
+1 -3
drivers/mfd/kempld-core.c
··· 895 895 896 896 static void __exit kempld_exit(void) 897 897 { 898 - if (kempld_pdev) 899 - platform_device_unregister(kempld_pdev); 900 - 898 + platform_device_unregister(kempld_pdev); 901 899 platform_driver_unregister(&kempld_driver); 902 900 } 903 901