i2c: davinci: remove dead code in probe
authorDongliang Mu <dzm91@hust.edu.cn>
Mon, 6 Mar 2023 02:45:23 +0000 (10:45 +0800)
committerWolfram Sang <wsa@kernel.org>
Thu, 16 Mar 2023 19:51:02 +0000 (20:51 +0100)
commitcbffe6b3b2bdf6064135f715242feb2f9094190f
tree4bf6498ee4fcc93332a26c01b746c71fa4a4f13e
parentff0cf7bca63092786d640820a18f3e746b02e172
i2c: davinci: remove dead code in probe

From the comment of platform_get_irq, it only returns non-zero IRQ
number and negative error number, other than zero.

Fix this by removing the if condition.

Signed-off-by: Dongliang Mu <dzm91@hust.edu.cn>
Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/i2c-davinci.c