Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9ef219c5 authored by Dan Carpenter's avatar Dan Carpenter Committed by Ulf Hansson
Browse files

mmc: mxs-mmc: remove unneeded NULL check



Static checkers complain about the inconsistent NULL checking here:

	drivers/mmc/host/mxs-mmc.c:680 mxs_mmc_probe()
	warn: variable dereferenced before check 'ssp->dmach' (see line 660)

The variable can't actually be NULL so we can remove the check.

Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent de0673cd
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line Diff line number Diff line
@@ -677,7 +677,6 @@ static int mxs_mmc_probe(struct platform_device *pdev)
	return 0;
	return 0;


out_free_dma:
out_free_dma:
	if (ssp->dmach)
	dma_release_channel(ssp->dmach);
	dma_release_channel(ssp->dmach);
out_clk_disable:
out_clk_disable:
	clk_disable_unprepare(ssp->clk);
	clk_disable_unprepare(ssp->clk);