]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: nomadik: remove an unnecessary NULL check in nmk_i2c_remove()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 28 Mar 2019 14:16:09 +0000 (17:16 +0300)
committerWolfram Sang <wsa@the-dreams.de>
Wed, 3 Apr 2019 20:49:31 +0000 (22:49 +0200)
commit4269501c5e3eac9ecddae141fad67cace49f67f7
tree340d79924361fffd79a571e448a62c12d5940917
parentc065bfe944a5de994a1f0d13bd0b776361ca0150
i2c: nomadik: remove an unnecessary NULL check in nmk_i2c_remove()

"res" can't be NULL because it's a pointer to somewhere in the middle of
the "adev" struct.  Also probe() succeeded so there is no need to check
here.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-nomadik.c