diff options
author | Ye Li <ye.li@nxp.com> | 2018-11-12 01:23:41 -0800 |
---|---|---|
committer | Ye Li <ye.li@nxp.com> | 2018-11-12 20:09:51 -0800 |
commit | cedf379e3dee43533f68d00462eebf6c535ee94f (patch) | |
tree | 29002242b0cfcf7c08478a25ef4a2397187b18cc /drivers | |
parent | 3553a99cc49bd51b85eef9bf1526677c3ccab92b (diff) |
MLK-20240-5 fsl_usdhc: Fix fsl_esdhc_get_cd issue
Fix coverity issue CID 3606685: Structurally dead code (UNREACHABLE)
unreachable: This code cannot be reached: return esdhc_getcd_common
Should not return true directly, otherwise the esdhc_getcd_common is
bypassed.
Signed-off-by: Ye Li <ye.li@nxp.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mmc/fsl_esdhc.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/mmc/fsl_esdhc.c b/drivers/mmc/fsl_esdhc.c index 671e03fdae..cb454d55b1 100644 --- a/drivers/mmc/fsl_esdhc.c +++ b/drivers/mmc/fsl_esdhc.c @@ -1561,7 +1561,6 @@ static int fsl_esdhc_get_cd(struct udevice *dev) { struct fsl_esdhc_priv *priv = dev_get_priv(dev); - return true; return esdhc_getcd_common(priv); } |