diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2020-12-28 22:06:17 +0200 |
---|---|---|
committer | Wolfram Sang <wsa@kernel.org> | 2021-01-05 12:05:18 +0100 |
commit | 926e6b2cd1ca9de8d89d4e9e31804a3cc0b8ecea (patch) | |
tree | 1639d9a7d26deb3f6eb78eb6204266d72f51964f /drivers/i2c/busses | |
parent | d321ad1286d2ac1f14fccadee822519a6ac9dd64 (diff) |
i2c: i801: Drop duplicate NULL check in i801_del_mux()
Since gpiod_remove_lookup_table() is NULL-aware, no need to have this check
in the caller. Drop duplicate NULL check.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
Diffstat (limited to 'drivers/i2c/busses')
-rw-r--r-- | drivers/i2c/busses/i2c-i801.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/i2c/busses/i2c-i801.c b/drivers/i2c/busses/i2c-i801.c index ae90713443fa..7c2569a18f8c 100644 --- a/drivers/i2c/busses/i2c-i801.c +++ b/drivers/i2c/busses/i2c-i801.c @@ -1487,8 +1487,7 @@ static void i801_del_mux(struct i801_priv *priv) { if (priv->mux_pdev) platform_device_unregister(priv->mux_pdev); - if (priv->lookup) - gpiod_remove_lookup_table(priv->lookup); + gpiod_remove_lookup_table(priv->lookup); } static unsigned int i801_get_adapter_class(struct i801_priv *priv) |