1
0
Fork 0

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>
zero-sugar
Ye Li 2018-11-12 01:23:41 -08:00
parent 3553a99cc4
commit cedf379e3d
1 changed files with 0 additions and 1 deletions

View File

@ -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);
}