Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mmc: at91_mci: cleanup: use MCI_ERRORS

A small MMC driver cleanup.

Use the defined AT91_MCI_ERRORS in at91_mci_completed_command() instead
of specifying all the error bits individually.

Signed-off-by: Andrew Victor <andrew@sanpeople.com>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>

authored by

Andrew Victor and committed by
Pierre Ossman
9e3866b5 00cedfa6

+1 -3
+1 -3
drivers/mmc/host/at91_mci.c
··· 581 581 pr_debug("Status = %08X [%08X %08X %08X %08X]\n", 582 582 status, cmd->resp[0], cmd->resp[1], cmd->resp[2], cmd->resp[3]); 583 583 584 - if (status & (AT91_MCI_RINDE | AT91_MCI_RDIRE | AT91_MCI_RCRCE | 585 - AT91_MCI_RENDE | AT91_MCI_RTOE | AT91_MCI_DCRCE | 586 - AT91_MCI_DTOE | AT91_MCI_OVRE | AT91_MCI_UNRE)) { 584 + if (status & AT91_MCI_ERRORS) { 587 585 if ((status & AT91_MCI_RCRCE) && !(mmc_resp_type(cmd) & MMC_RSP_CRC)) { 588 586 cmd->error = 0; 589 587 }