]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: Drop unneeded check for of_node
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 26 Jul 2019 13:14:21 +0000 (16:14 +0300)
committerWolfram Sang <wsa@the-dreams.de>
Tue, 6 Aug 2019 20:54:18 +0000 (22:54 +0200)
commit089908dadb451fd2f6ce6d23c43c7d411ea26cc9
treed08c5bca639ee6f04f2fbf39cc01cf8daa76025f
parent675ea7988d957bc2d5d8acd516ce4d7828ebbf8d
i2c: Drop unneeded check for of_node

of_find_property() will return NULL if of_node is NULL,
thus of_irq_get_by_name() returns -EINVAL which we ignore,
so no need to double check.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/i2c-core-base.c