提交 620c50dc 编写于 作者: A Andy Shevchenko 提交者: Wolfram Sang

i2c: thunderx: Remove duplicate NULL check

Since i2c_unregister_device() became NULL-aware we may remove duplicate
NULL check.
Signed-off-by: NAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: NWolfram Sang <wsa@the-dreams.de>
上级 bfd96212
...@@ -143,8 +143,7 @@ static int thunder_i2c_smbus_setup(struct octeon_i2c *i2c, ...@@ -143,8 +143,7 @@ static int thunder_i2c_smbus_setup(struct octeon_i2c *i2c,
static void thunder_i2c_smbus_remove(struct octeon_i2c *i2c) static void thunder_i2c_smbus_remove(struct octeon_i2c *i2c)
{ {
if (i2c->ara) i2c_unregister_device(i2c->ara);
i2c_unregister_device(i2c->ara);
} }
static int thunder_i2c_probe_pci(struct pci_dev *pdev, static int thunder_i2c_probe_pci(struct pci_dev *pdev,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册