mmc: queue: Remove unused define
authorChanWoo Lee <cw9316.lee@samsung.com>
Wed, 3 Feb 2021 07:20:14 +0000 (16:20 +0900)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 8 Feb 2021 11:56:52 +0000 (12:56 +0100)
MMC_CQE_QUEUE_FULL is not set and is only cleared.
Therefore, define is unnecessary.

Signed-off-by: ChanWoo Lee <cw9316.lee@samsung.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Link: https://lore.kernel.org/r/20210203072014.30272-1-cw9316.lee@samsung.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/queue.c
drivers/mmc/core/queue.h

index 8a774b7..27d2b8e 100644 (file)
@@ -33,8 +33,6 @@ void mmc_cqe_check_busy(struct mmc_queue *mq)
 {
        if ((mq->cqe_busy & MMC_CQE_DCMD_BUSY) && !mmc_cqe_dcmd_busy(mq))
                mq->cqe_busy &= ~MMC_CQE_DCMD_BUSY;
-
-       mq->cqe_busy &= ~MMC_CQE_QUEUE_FULL;
 }
 
 static inline bool mmc_cqe_can_dcmd(struct mmc_host *host)
index fd11491..57c59b6 100644 (file)
@@ -81,7 +81,6 @@ struct mmc_queue {
        int                     in_flight[MMC_ISSUE_MAX];
        unsigned int            cqe_busy;
 #define MMC_CQE_DCMD_BUSY      BIT(0)
-#define MMC_CQE_QUEUE_FULL     BIT(1)
        bool                    busy;
        bool                    use_cqe;
        bool                    recovery_needed;