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>
This commit is contained in:
parent
3553a99cc4
commit
cedf379e3d
|
|
@ -1561,7 +1561,6 @@ static int fsl_esdhc_get_cd(struct udevice *dev)
|
||||||
{
|
{
|
||||||
struct fsl_esdhc_priv *priv = dev_get_priv(dev);
|
struct fsl_esdhc_priv *priv = dev_get_priv(dev);
|
||||||
|
|
||||||
return true;
|
|
||||||
return esdhc_getcd_common(priv);
|
return esdhc_getcd_common(priv);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue