staging: r8188eu: Remove unused macros
authorDeepak R Varma <drv@mailo.com>
Thu, 20 Oct 2022 21:32:35 +0000 (03:02 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 22 Oct 2022 08:00:22 +0000 (10:00 +0200)
Simple variants of macros PlatformEFIOWrite and PlatformEFIORead are
defined but never used. As they do not appear to be designed for anything
significant, we can remove them to avoid unexpected usage.

Suggested-by: Julia Lawall <julia.lawall@inria.fr>
Signed-off-by: Deepak R Varma <drv@mailo.com>
Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> # Edimax N150
Link: https://lore.kernel.org/r/efaf637a14b6f7fdd0178e2aecf8abf17e6922f6.1666299151.git.drv@mailo.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/include/rtw_io.h

index 87fcf6c94ff32ed424cf2d67fa3bc36a84476bea..e9744694204bc7086eef9d546d601acd86415a3b 100644 (file)
@@ -285,18 +285,4 @@ void bus_sync_io(struct io_queue *pio_q);
 u32 _ioreq2rwmem(struct io_queue *pio_q);
 void dev_power_down(struct adapter *Adapter, u8 bpwrup);
 
-#define PlatformEFIOWrite1Byte(_a, _b, _c)             \
-       rtw_write8(_a, _b, _c)
-#define PlatformEFIOWrite2Byte(_a, _b, _c)             \
-       rtw_write16(_a, _b, _c)
-#define PlatformEFIOWrite4Byte(_a, _b, _c)             \
-       rtw_write32(_a, _b, _c)
-
-#define PlatformEFIORead1Byte(_a, _b)          \
-               rtw_read8(_a, _b)
-#define PlatformEFIORead2Byte(_a, _b)          \
-               rtw_read16(_a, _b)
-#define PlatformEFIORead4Byte(_a, _b)          \
-               rtw_read32(_a, _b)
-
 #endif /* _RTL8711_IO_H_ */