瀏覽代碼

staging: mt7621-mmc: Remove unused macro msdc_retry

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>
Christian Lütke-Stetzkamp 7 年之前
父節點
當前提交
6a1636fa11
共有 1 個文件被更改,包括 0 次插入13 次删除
  1. 0 13
      drivers/staging/mt7621-mmc/sd.c

+ 0 - 13
drivers/staging/mt7621-mmc/sd.c

@@ -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;