mmc: core: Remove unused macro mmc_req_rel_wr
authorBean Huo <beanhuo@micron.com>
Mon, 3 Apr 2023 22:17:54 +0000 (00:17 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 17 Apr 2023 07:47:25 +0000 (09:47 +0200)
There is no user for macro mmc_req_rel_wr, so delete it.

Signed-off-by: Bean Huo <beanhuo@micron.com>
Link: https://lore.kernel.org/r/20230403221754.16168-1-beanhuo@iokpp.de
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/block.c

index 672ab90c4b2d9c942a193d99e0f42882520e8e70..00c33edb9fb94ed4c6cd7c4f0830ea5d71d901e1 100644 (file)
@@ -76,8 +76,6 @@ MODULE_ALIAS("mmc:block");
 #define MMC_EXTRACT_INDEX_FROM_ARG(x) ((x & 0x00FF0000) >> 16)
 #define MMC_EXTRACT_VALUE_FROM_ARG(x) ((x & 0x0000FF00) >> 8)
 
-#define mmc_req_rel_wr(req)    ((req->cmd_flags & REQ_FUA) && \
-                                 (rq_data_dir(req) == WRITE))
 static DEFINE_MUTEX(block_mutex);
 
 /*