Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 620c50dc authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Wolfram Sang
Browse files

i2c: thunderx: Remove duplicate NULL check



Since i2c_unregister_device() became NULL-aware we may remove duplicate
NULL check.

Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
parent bfd96212
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -143,7 +143,6 @@ static int thunder_i2c_smbus_setup(struct octeon_i2c *i2c,

static void thunder_i2c_smbus_remove(struct octeon_i2c *i2c)
{
	if (i2c->ara)
	i2c_unregister_device(i2c->ara);
}