Skip to contentSkip to conversation

ALSA: drivers: Remove the unused variable portman_read_data

PATCH Applied Jiapeng Chong 2 participants 3 messages Mar 17, 2023 – Mar 19, 2023 Sound

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ALSA: drivers: Remove the unused variable portman_read_data

Variable portman_read_data is not effectively used, so delete it.

sound/drivers/portman2x4.c:195:18: warning: unused function 'portman_read_data'.

---
 sound/drivers/portman2x4.c | 5 -----
 1 file changed, 5 deletions(-)
sound/drivers/portman2x4.c +0 -5
index 52a656735365..41b46f9ae731 100644
@@ -192,11 +192,6 @@ static inline u8 portman_read_status(struct portman *pm)
 	return parport_read_status(pm->pardev->port);
 }
 
-static inline u8 portman_read_data(struct portman *pm)
-{
-	return parport_read_data(pm->pardev->port);
-}
-
 static inline void portman_write_data(struct portman *pm, u8 value)
 {
 	parport_write_data(pm->pardev->port, value);
Signature · 1 line
2.20.1.7.g153144c
#2 lore raw
Quoted 6 lines · Takashi Iwai
Quoted 3 lines · Jiapeng Chong

Variable portman_read_data is not effectively used, so delete it.

Quoted 7 lines
Quoted 5 lines

sound/drivers/portman2x4.c:195:18: warning: unused function 'portman_read_data'.

Thanks, applied now.

... and now I see Tom's patch removing one more unused one, so I took Tom's fix instead of yours.
https://lore.kernel.org/r/[email protected]

thanks,

Takashi