projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d321ad1
)
i2c: i801: Drop duplicate NULL check in i801_del_mux()
author
Andy Shevchenko
<andriy.shevchenko@linux.intel.com>
Mon, 28 Dec 2020 20:06:17 +0000
(22:06 +0200)
committer
Wolfram Sang
<wsa@kernel.org>
Tue, 5 Jan 2021 11:05:18 +0000
(12:05 +0100)
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>
drivers/i2c/busses/i2c-i801.c
patch
|
blob
|
history
diff --git
a/drivers/i2c/busses/i2c-i801.c
b/drivers/i2c/busses/i2c-i801.c
index
ae90713
..
7c2569a
100644
(file)
--- 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)