Commit d080766
ipmi:ssif: Drop if blocks with always false condition
For both variants (platform and i2c driver) after a successful bind
(i.e. .probe completed without error) driver data is set to a non-NULL
value.
So the return value of i2c_get_clientdata and dev_get_drvdata
respectively are not NULL and so the if blocks are never executed. (And
if you fear they might, they shouldn't return silently and yield a
resource leak.)
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Message-Id: <20221230124431.202474-1-u.kleine-koenig@pengutronix.de>
Signed-off-by: Corey Minyard <minyard@acm.org>1 parent 6d2555c commit d080766
1 file changed
Lines changed: 0 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1281 | 1281 | | |
1282 | 1282 | | |
1283 | 1283 | | |
1284 | | - | |
1285 | | - | |
1286 | | - | |
1287 | 1284 | | |
1288 | 1285 | | |
1289 | 1286 | | |
| |||
2073 | 2070 | | |
2074 | 2071 | | |
2075 | 2072 | | |
2076 | | - | |
2077 | | - | |
2078 | | - | |
2079 | 2073 | | |
2080 | 2074 | | |
2081 | 2075 | | |
| |||
0 commit comments