[PATCH] rapidio: rio-access: remove unused macros

From: Ba Jing
Date: Thu Oct 17 2024 - 03:22:35 EST


By reading the code, I found these marcos are never referenced
in the code. Just remove them.

Signed-off-by: Ba Jing <bajing@xxxxxxxxxxxxxxxxxxxx>
---
drivers/rapidio/rio-access.c | 9 ---------
1 file changed, 9 deletions(-)

diff --git a/drivers/rapidio/rio-access.c b/drivers/rapidio/rio-access.c
index f9e10647f94e..06135dc9a4ce 100644
--- a/drivers/rapidio/rio-access.c
+++ b/drivers/rapidio/rio-access.c
@@ -11,15 +11,6 @@

#include <linux/rio_drv.h>

-/*
- * Wrappers for all RIO configuration access functions. They just check
- * alignment and call the low-level functions pointed to by rio_mport->ops.
- */
-
-#define RIO_8_BAD 0
-#define RIO_16_BAD (offset & 1)
-#define RIO_32_BAD (offset & 3)
-
/**
* RIO_LOP_READ - Generate rio_local_read_config_* functions
* @size: Size of configuration space read (8, 16, 32 bits)
--
2.33.0