Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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.

Signed-off-by: Tom Rix <trix@redhat.com>
Link: https://lore.kernel.org/r/20230319164744.1707169-1-trix@redhat.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>

authored by

Tom Rix and committed by
Ulf Hansson
cc47d2cf 8e8559dd

-8
-8
drivers/mmc/host/sdricoh_cs.c
··· 101 101 102 102 } 103 103 104 - static inline unsigned int sdricoh_readw(struct sdricoh_host *host, 105 - unsigned int reg) 106 - { 107 - unsigned int value = readw(host->iobase + reg); 108 - dev_vdbg(host->dev, "rb %x 0x%x\n", reg, value); 109 - return value; 110 - } 111 - 112 104 static inline void sdricoh_writew(struct sdricoh_host *host, unsigned int reg, 113 105 unsigned short value) 114 106 {