Skip to contentSkip to conversation

mmc: sdricoh_cs: remove unused sdricoh_readw function

PATCH In review Tom Rix 2 participants 2 messages Mar 19, 2023 – Mar 23, 2023

Subsystems (2)
lore
Share & tools
lore

Tom Rix

author
#0 lore raw

PATCH 1/1 mmc: sdricoh_cs: remove unused sdricoh_readw function

clang with W=1 reports drivers/mmc/host/sdricoh_cs.c:104:28: error: unused function
'sdricoh_readw' [-Werror,-Wunused-function]
static inline unsigned int sdricoh_readw(struct sdricoh_host *host,

                           ^

This function is not used, so remove it.

---
 drivers/mmc/host/sdricoh_cs.c | 8 --------
 1 file changed, 8 deletions(-)
drivers/mmc/host/sdricoh_cs.c +0 -8
index 76a8cd3a186f..57b8c1a96756 100644
@@ -101,14 +101,6 @@ static inline void sdricoh_writel(struct sdricoh_host *host, unsigned int reg,
 
 }
 
-static inline unsigned int sdricoh_readw(struct sdricoh_host *host,
-					 unsigned int reg)
-{
-	unsigned int value = readw(host->iobase + reg);
-	dev_vdbg(host->dev, "rb %x 0x%x\n", reg, value);
-	return value;
-}
-
 static inline void sdricoh_writew(struct sdricoh_host *host, unsigned int reg,
 					 unsigned short value)
 {
Signature · 1 line
2.27.0
#1 lore raw
Quoted 9 lines · Tom Rix

clang with W=1 reports drivers/mmc/host/sdricoh_cs.c:104:28: error: unused function
'sdricoh_readw' [-Werror,-Wunused-function]
static inline unsigned int sdricoh_readw(struct sdricoh_host *host,

                           ^

This function is not used, so remove it.

Applied for next, thanks!

Kind regards
Uffe

Quoted 26 lines
---
 drivers/mmc/host/sdricoh_cs.c | 8 --------
 1 file changed, 8 deletions(-)
drivers/mmc/host/sdricoh_cs.c +0 -9
index 76a8cd3a186f..57b8c1a96756 100644
@@ -101,14 +101,6 @@ static inline void sdricoh_writel(struct sdricoh_host *host, unsigned int reg,
 
 }
 
-static inline unsigned int sdricoh_readw(struct sdricoh_host *host,
-                                        unsigned int reg)
-{
-       unsigned int value = readw(host->iobase + reg);
-       dev_vdbg(host->dev, "rb %x 0x%x\n", reg, value);
-       return value;
-}
-
 static inline void sdricoh_writew(struct sdricoh_host *host, unsigned int reg,
                                         unsigned short value)
 {
--

2.27.0