]> git.baikalelectronics.ru Git - kernel.git/commit
ptp_ocp: drop duplicate NULL check in ptp_ocp_detach()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 8 Jun 2022 12:03:56 +0000 (15:03 +0300)
committerJakub Kicinski <kuba@kernel.org>
Fri, 10 Jun 2022 15:36:08 +0000 (08:36 -0700)
commitd92975d180fa727210a3e492854ba36e9eb17141
tree4ae3d618772451fca8688ccc3abd425e314c58ef
parent06059c0a09ce1401fbcd583366226530638c0ac9
ptp_ocp: drop duplicate NULL check in ptp_ocp_detach()

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>
Acked-by: Vadim Fedorenko <vfedorenko@novek.ru>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/ptp/ptp_ocp.c