diff options
author | 2023-03-23 16:27:13 -0400 | |
---|---|---|
committer | 2023-03-24 07:50:07 +0100 | |
commit | 2c7598903f18418aa18d11a9dd081acb22e9e108 (patch) | |
tree | 07ab3a57bcc7f024510ce3d31542f5ed3b71a598 /sound/pci/rme9652 | |
parent | kselftest/alsa - pcm-test: Don't include diagnostic message in test name (diff) | |
download | linux-2c7598903f18418aa18d11a9dd081acb22e9e108.tar.gz linux-2c7598903f18418aa18d11a9dd081acb22e9e108.tar.bz2 linux-2c7598903f18418aa18d11a9dd081acb22e9e108.zip |
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.
Signed-off-by: Tom Rix <trix@redhat.com>
Link: https://lore.kernel.org/r/20230323202713.2637150-1-trix@redhat.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/rme9652')
-rw-r--r-- | sound/pci/rme9652/hdspm.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/sound/pci/rme9652/hdspm.c b/sound/pci/rme9652/hdspm.c index fa1812e7a49d..267c7848974a 100644 --- a/sound/pci/rme9652/hdspm.c +++ b/sound/pci/rme9652/hdspm.c @@ -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) { |