i3c: master: Drop duplicate check before calling OF APIs
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 21 Mar 2025 19:30:06 +0000 (21:30 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Mon, 31 Mar 2025 09:41:48 +0000 (11:41 +0200)
commit465e5486aa5e1cdedc910bc3487ca92c5e6d51c4
treea913ae3ec2cd3d53e3513ea4628da40b1ebe5a00
parente8d2d287e26d9bd9114cf258a123a6b70812442e
i3c: master: Drop duplicate check before calling OF APIs

OF APIs are usually NULL-aware and returns an error in case when
device node is not present or supported. We already have a check
for the returned value, no need to check for the parameter.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Link: https://lore.kernel.org/r/20250321193044.457649-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/i3c/master.c