Searched hist:"452 d5e2976941c24c4fe9e6d782bfbac3cabd54f" (Results 1 – 1 of 1) sorted by relevance
/linux/drivers/hwmon/ |
H A D | nct6775-platform.c | diff 452d5e2976941c24c4fe9e6d782bfbac3cabd54f Fri Jun 10 12:33:24 CEST 2022 Andy Shevchenko <andriy.shevchenko@linux.intel.com> hwmon: (nct6775) Drop duplicate NULL check in ->init() and ->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> Reviewed-by: Zev Weiss <zev@bewilderbeest.net> Link: https://lore.kernel.org/r/20220610103324.87483-1-andriy.shevchenko@linux.intel.com Signed-off-by: Guenter Roeck <linux@roeck-us.net>
|