diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2020-12-28 22:06:18 +0200 |
---|---|---|
committer | Wolfram Sang <wsa@kernel.org> | 2021-01-05 12:05:18 +0100 |
commit | 5581b4167c0f309d5556673d93e96fb90b31c64d (patch) | |
tree | 528b9658df7feacf1e3fe8f715cff22d836a0122 /lib | |
parent | 926e6b2cd1ca9de8d89d4e9e31804a3cc0b8ecea (diff) | |
download | linux-5581b4167c0f309d5556673d93e96fb90b31c64d.tar.bz2 |
i2c: i801: Refactor mux code since platform_device_unregister() is NULL aware
platform_device_unregister() is NULL-aware and thus doesn't required a
duplication check in i801_del_mux(). Besides that it's also error pointer
aware, and we may drop unneeded assignment in i801_add_mux() followed by
conversion to PTR_ERR_OR_ZERO() for the returned value.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions