diff mbox series

mmc: core: Remove unused macro mmc_req_rel_wr

Message ID 20230403221754.16168-1-beanhuo@iokpp.de
State New
Headers show
Series mmc: core: Remove unused macro mmc_req_rel_wr | expand

Commit Message

Bean Huo April 3, 2023, 10:17 p.m. UTC
From: Bean Huo <beanhuo@micron.com>

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

Signed-off-by: Bean Huo <beanhuo@micron.com>
---
 drivers/mmc/core/block.c | 2 --
 1 file changed, 2 deletions(-)

Comments

Ulf Hansson April 17, 2023, 2:53 p.m. UTC | #1
On Tue, 4 Apr 2023 at 00:18, Bean Huo <beanhuo@iokpp.de> wrote:
>
> From: Bean Huo <beanhuo@micron.com>
>
> There is no user for macro mmc_req_rel_wr, so delete it.
>
> Signed-off-by: Bean Huo <beanhuo@micron.com>

Applied for next, thanks!

Kind regards
Uffe


> ---
>  drivers/mmc/core/block.c | 2 --
>  1 file changed, 2 deletions(-)
>
> diff --git a/drivers/mmc/core/block.c b/drivers/mmc/core/block.c
> index 672ab90c4b2d..00c33edb9fb9 100644
> --- a/drivers/mmc/core/block.c
> +++ b/drivers/mmc/core/block.c
> @@ -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
>
diff mbox series

Patch

diff --git a/drivers/mmc/core/block.c b/drivers/mmc/core/block.c
index 672ab90c4b2d..00c33edb9fb9 100644
--- a/drivers/mmc/core/block.c
+++ b/drivers/mmc/core/block.c
@@ -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);
 
 /*