Skip to content

Commit 88b3f10

Browse files
Uwe Kleine-Königlinusw
authored andcommitted
pinctrl: ti: ti-iodelay: Drop if block with always false condition
ti_iodelay_remove() is only called after ti_iodelay_probe() completed successfully. In this case platform_set_drvdata() was called with a non-NULL argument and so platform_get_drvdata() won't return NULL. Simplify by removing the if block with the always false condition. Signed-off-by: Uwe Kleine-König <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Linus Walleij <[email protected]>
1 parent 71e6702 commit 88b3f10

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

drivers/pinctrl/ti/pinctrl-ti-iodelay.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -903,9 +903,6 @@ static int ti_iodelay_remove(struct platform_device *pdev)
903903
{
904904
struct ti_iodelay_device *iod = platform_get_drvdata(pdev);
905905

906-
if (!iod)
907-
return 0;
908-
909906
if (iod->pctl)
910907
pinctrl_unregister(iod->pctl);
911908

0 commit comments

Comments
 (0)