aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/modules.py
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <[email protected]>2020-09-23 17:37:38 +0200
committerUlf Hansson <[email protected]>2020-09-25 13:24:02 +0200
commit6b28f2c4da7e196062d84b143294cf6d86f6e02c (patch)
treebda7d244f3948f53c2691072ed294dd75f038d4e /scripts/gdb/linux/modules.py
parentfbb31330f9b00bf62fe126a1ea118c02389b06f0 (diff)
mmc: moxart: remove unneeded check for drvdata
The 'struct mmc_host *mmc' comes from drvdata set at the end of probe, so it cannot be NULL. The code already dereferences it few lines before the check with mmc_priv(). This also fixes smatch warning: drivers/mmc/host/moxart-mmc.c:692 moxart_remove() warn: variable dereferenced before check 'mmc' (see line 688) Reported-by: kernel test robot <[email protected]> Reported-by: Dan Carpenter <[email protected]> Signed-off-by: Krzysztof Kozlowski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Ulf Hansson <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/modules.py')
0 files changed, 0 insertions, 0 deletions