diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2022-06-08 15:03:56 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-06-10 08:36:08 -0700 |
commit | 3a544ebf9f99b612442064c792f34de5bad3cb31 (patch) | |
tree | 4ae3d618772451fca8688ccc3abd425e314c58ef /kernel/platform-feature.c | |
parent | 1132bb29993e0245515a3a519c1ff7f032ab4f7c (diff) |
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>
Diffstat (limited to 'kernel/platform-feature.c')
0 files changed, 0 insertions, 0 deletions