]> git.dujemihanovic.xyz Git - u-boot.git/commit
mmc: Fix static checker warnings
authorVenkatesh Yadav Abbarapu <venkatesh.abbarapu@amd.com>
Thu, 29 Sep 2022 04:52:49 +0000 (10:22 +0530)
committerJaehoon Chung <jh80.chung@samsung.com>
Mon, 24 Oct 2022 09:02:54 +0000 (18:02 +0900)
commit337af54a36c6409b7eeb49619c796178b3c22372
treed4c583d926222a83f3749ba274341f7fc97542da
parent7ff2f30b63947ffe4e707bbe4b94143e947fce35
mmc: Fix static checker warnings

Correct pointer dereferencing check to be more consistent.

Eliminate the below smatch warning:
drivers/mmc/mmc.c:3118 mmc_init_device()
warn: variable dereferenced before check 'm' (see line 3116)

Signed-off-by: Venkatesh Yadav Abbarapu <venkatesh.abbarapu@amd.com>
Reviewed-by: Michal Simek <michal.simek@amd.com>
Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
drivers/mmc/mmc.c