OSDN Git Service

staging: mt7621-mmc: Remove unused macro msdc_retry
authorChristian Lütke-Stetzkamp <christian@lkamp.de>
Sat, 16 Jun 2018 14:14:55 +0000 (16:14 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Jun 2018 12:48:04 +0000 (21:48 +0900)
The macro msdc_retry is never used, so remove it.

Signed-off-by: Christian Lütke-Stetzkamp <christian@lkamp.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/mt7621-mmc/sd.c

index 01a925a..0e94bb0 100644 (file)
@@ -149,19 +149,6 @@ static int msdc_rsp[] = {
 
 #define msdc_dma_on()        sdr_clr_bits(MSDC_CFG, MSDC_CFG_PIO)
 
-#define msdc_retry(expr, retry, cnt) \
-       do {                                                            \
-               int backup = cnt;                                       \
-               while (retry) {                                         \
-                       if (!(expr))                                    \
-                               break;                                  \
-                       if (cnt-- == 0) {                               \
-                               retry--; mdelay(1); cnt = backup;       \
-                       }                                               \
-               }                                                       \
-               WARN_ON(retry == 0);                                    \
-       } while (0)
-
 static void msdc_reset_hw(struct msdc_host *host)
 {
        void __iomem *base = host->base;