Commit 977ff250 authored by Viresh Kumar's avatar Viresh Kumar Committed by Greg Kroah-Hartman
Browse files

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: default avatarViresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: default avatarVaibhav Hiremath <vaibhav.hiremath@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent 3b538c39
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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);

	platform_set_drvdata(pdev, NULL);
	unexport_gpios(apb);