Skip to content

Commit

Permalink
mmc: cb710: Return err value in cb710_wait_while_busy()
Browse files Browse the repository at this point in the history
Fixes:

drivers/mmc/host/cb710-mmc.c: In function ‘cb710_wait_while_busy’:
drivers/mmc/host/cb710-mmc.c:182:6: warning: variable ‘err’ set but not
used [-Wunused-but-set-variable]

Signed-off-by: Chris Ball <[email protected]>
Acked-by: Michał Mirosław <[email protected]>
Acked-by: Wolfram Sang <[email protected]>
  • Loading branch information
cjb committed Mar 15, 2011
1 parent 24c3001 commit b3bd1b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mmc/host/cb710-mmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ static int cb710_wait_while_busy(struct cb710_slot *slot, uint8_t mask)
"WAIT12: waited %d loops, mask %02X, entry val %08X, exit val %08X\n",
limit, mask, e, x);
#endif
return 0;
return err;
}

static void cb710_mmc_set_transfer_size(struct cb710_slot *slot,
Expand Down

0 comments on commit b3bd1b5

Please sign in to comment.