Skip to contentSkip to conversation

ALSA: hdspm: remove unused copy_u32_le function

PATCH Applied Tom Rix 2 participants 2 messages Mar 23, 2023 – Mar 24, 2023 Sound

lore
Share & tools
lore

Tom Rix

author
#0 lore raw

PATCH 1/1 ALSA: hdspm: remove unused copy_u32_le function

clang with W=1 reports sound/pci/rme9652/hdspm.c:6149:19: error: unused function
'copy_u32_le' [-Werror,-Wunused-function]
static inline int copy_u32_le(void __user *dest, void __iomem *src)

                  ^

This function is not used so remove it.

---
 sound/pci/rme9652/hdspm.c | 6 ------
 1 file changed, 6 deletions(-)
sound/pci/rme9652/hdspm.c +0 -6
index fa1812e7a49d..267c7848974a 100644
@@ -6146,12 +6146,6 @@ static int snd_hdspm_hwdep_dummy_op(struct snd_hwdep *hw, struct file *file)
 	return 0;
 }
 
-static inline int copy_u32_le(void __user *dest, void __iomem *src)
-{
-	u32 val = readl(src);
-	return copy_to_user(dest, &val, 4);
-}
-
 static int snd_hdspm_hwdep_ioctl(struct snd_hwdep *hw, struct file *file,
 		unsigned int cmd, unsigned long arg)
 {
Signature · 1 line
2.27.0
Applied
#1 lore raw
Quoted 9 lines · Tom Rix

clang with W=1 reports sound/pci/rme9652/hdspm.c:6149:19: error: unused function
'copy_u32_le' [-Werror,-Wunused-function]
static inline int copy_u32_le(void __user *dest, void __iomem *src)

                  ^

This function is not used so remove it.

Applied to for-next branch. Thanks.

Takashi