diff options
| author | 2022-06-15 14:47:18 +0200 | |
|---|---|---|
| committer | 2022-07-19 09:57:13 +0200 | |
| commit | 3d57fa2a228c973032e94aceeef92a3e9704b9ea (patch) | |
| tree | b33b0e65ecd21ecde28b68fc8938b963e6da5f42 /include/linux/phy/git:/ssh:/git@git.zx2c4.com | |
| parent | gpio: brcmstb: Make .remove() obviously always return 0 (diff) | |
| download | linux-dev-3d57fa2a228c973032e94aceeef92a3e9704b9ea.tar.xz linux-dev-3d57fa2a228c973032e94aceeef92a3e9704b9ea.zip | |
gpio: xgs-iproc: Drop if with an always false condition
The remove callback is only called after probe completed successfully.
In this case platform_set_drvdata() was called with a non-NULL argument
and so chip is never NULL.
Also note that returning an error code from a remove callback doesn't
result in the device staying bound. It's still removed and devm
callbacks are called.
This is a preparation for making platform remove callbacks return void.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Diffstat (limited to 'include/linux/phy/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
