Skip to content

Commit

Permalink
LFU-647 mmc: Fix coverity issue 28682987: Logically dead code
Browse files Browse the repository at this point in the history
Revert commit 463d29e ("LF-3483-15 mmc: fix switch issue with
send_status disabled") to fix coverity issue CID 28682987
Logically dead code. The codes is duplicated.

Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
  • Loading branch information
Ye Li committed Mar 4, 2024
1 parent b72b414 commit 9b3315f
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/mmc/mmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -839,9 +839,6 @@ static int __mmc_switch(struct mmc *mmc, u8 set, u8 index, u8 value,
* is false, because by now (after 'timeout_ms' ms) the bus should be
* reliable.
*/
if (!send_status)
return 0;

do {
ret = mmc_send_status(mmc, &status);

Expand Down

0 comments on commit 9b3315f

Please sign in to comment.