commit | f4a20dfac88c06c9b529a41ff4cf9acba8f3fdff | [log] [tgz] |
---|---|---|
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | Tue Oct 12 17:39:28 2021 +0200 |
committer | Bartosz Golaszewski <brgl@bgdev.pl> | Wed Oct 13 19:52:41 2021 +0200 |
tree | 2e7f25a303958a32f8b54cd91c61878b9af4bc8d | |
parent | 06de2cd788bfa3b51137e9bd471d68029ab68103 [diff] |
gpio: mc33880: Drop if with an always false condition An spi remove callback is only called for devices that probed successfully. In this case this implies that mc33880_probe() set a non-NULL driver data. So the check for mc being NULL is never true and the check can be dropped. Also the return value ofspi remove callbacks is ignored anyway. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>