Skip to contentSkip to conversation

mmc: core: Remove unused macro mmc_req_rel_wr

PATCH In review Bean Huo 2 participants 2 messages Apr 3, 2023 – Apr 17, 2023 MMC, SD and SDIO

lore
Share & tools
lore

Bean Huo

author
#0 lore raw

PATCH 1/1 mmc: core: Remove unused macro mmc_req_rel_wr

From: Bean Huo <[email protected]>

There is no user for macro mmc_req_rel_wr, so delete it.

---
 drivers/mmc/core/block.c | 2 --
 1 file changed, 2 deletions(-)
drivers/mmc/core/block.c +0 -2
index 672ab90c4b2d..00c33edb9fb9 100644
@@ -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);
 
 /*
Signature · 1 line
2.25.1
#1 lore raw
Quoted 6 lines · Bean Huo

From: Bean Huo <[email protected]>

There is no user for macro mmc_req_rel_wr, so delete it.

Applied for next, thanks!

Kind regards
Uffe

Quoted 20 lines
---
 drivers/mmc/core/block.c | 2 --
 1 file changed, 2 deletions(-)
drivers/mmc/core/block.c +0 -3
index 672ab90c4b2d..00c33edb9fb9 100644
@@ -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);
 
 /*
--

2.25.1