From: Andy Shevchenko Date: Mon, 28 Dec 2020 20:06:17 +0000 (+0200) Subject: i2c: i801: Drop duplicate NULL check in i801_del_mux() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=926e6b2cd1ca9de8d89d4e9e31804a3cc0b8ecea;p=linux.git 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 Signed-off-by: Wolfram Sang --- diff --git a/drivers/i2c/busses/i2c-i801.c b/drivers/i2c/busses/i2c-i801.c index ae90713443fa6..7c2569a18f8cd 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)