Commit 465e548
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>1 parent e8d2d28 commit 465e548
1 file changed
Lines changed: 6 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2276 | 2276 | | |
2277 | 2277 | | |
2278 | 2278 | | |
2279 | | - | |
| 2279 | + | |
2280 | 2280 | | |
2281 | 2281 | | |
2282 | 2282 | | |
| |||
2369 | 2369 | | |
2370 | 2370 | | |
2371 | 2371 | | |
| 2372 | + | |
2372 | 2373 | | |
2373 | | - | |
2374 | | - | |
2375 | | - | |
2376 | | - | |
2377 | | - | |
2378 | | - | |
2379 | | - | |
| 2374 | + | |
| 2375 | + | |
2380 | 2376 | | |
2381 | 2377 | | |
2382 | 2378 | | |
| |||
2486 | 2482 | | |
2487 | 2483 | | |
2488 | 2484 | | |
2489 | | - | |
| 2485 | + | |
2490 | 2486 | | |
2491 | 2487 | | |
2492 | 2488 | | |
| |||
2497 | 2493 | | |
2498 | 2494 | | |
2499 | 2495 | | |
2500 | | - | |
2501 | | - | |
2502 | | - | |
| 2496 | + | |
2503 | 2497 | | |
2504 | 2498 | | |
2505 | 2499 | | |
| |||
0 commit comments