diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2016-01-11 11:29:09 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@google.com> | 2016-01-11 15:58:01 -0800 |
commit | 977ff250755f4ae01ef50e98d792fabebb199c34 (patch) | |
tree | a38ab97ad7c7b604c651b206212b937a32559672 /drivers/staging/greybus/arche-apb-ctrl.c | |
parent | 3b538c399c3273ec268f7c641c8ce35c1235763a (diff) | |
download | linux-977ff250755f4ae01ef50e98d792fabebb199c34.tar.bz2 |
greybus: arche-apb: platform data 'apb' is guaranteed to be valid
Platform data 'apb' is guaranteed to be valid in arche_apb_ctrl_remove()
and so no need to check it.
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Vaibhav Hiremath <vaibhav.hiremath@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/arche-apb-ctrl.c')
-rw-r--r-- | drivers/staging/greybus/arche-apb-ctrl.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/staging/greybus/arche-apb-ctrl.c b/drivers/staging/greybus/arche-apb-ctrl.c index 4fe2d110c4ae..3d71093c4697 100644 --- a/drivers/staging/greybus/arche-apb-ctrl.c +++ b/drivers/staging/greybus/arche-apb-ctrl.c @@ -352,9 +352,7 @@ int arche_apb_ctrl_remove(struct platform_device *pdev) { struct arche_apb_ctrl_drvdata *apb = platform_get_drvdata(pdev); - if (apb) - apb_ctrl_cleanup(apb); - + apb_ctrl_cleanup(apb); platform_set_drvdata(pdev, NULL); unexport_gpios(apb); |