sound: core: fixed coding style errors
PATCH 1/1 sound: core: fixed coding style errors
fixing ERROR: "foo * bar" should be "foo *bar" fixing WARNING: Missing a blank line after declarations
Signed-off-by Rajesh Kumbhakar <[email protected]>
--- sound/core/hwdep_compat.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
sound/core/hwdep_compat.c +3 -1
@@ -36,11 +36,13 @@ enum { SNDRV_HWDEP_IOCTL_DSP_LOAD32 = _IOW('H', 0x03, struct snd_hwdep_dsp_image32) }; -static long snd_hwdep_ioctl_compat (struct file * file,unsigned int cmd, +static long snd_hwdep_ioctl_compat (struct file *file,unsigned int cmd,unsigned long arg) {struct snd_hwdep *hw = file->private_data; +void __user *argp =compat_ptr (arg); +switch (cmd) {case SNDRV_HWDEP_IOCTL_PVERSION :case SNDRV_HWDEP_IOCTL_INFO :
Signature · 1 line
2.25.1
Quoted 14 lines · Rajesh Kumbhakar
fixing ERROR: "foo * bar" should be "foo *bar" fixing WARNING: Missing a blank line after declarations
Signed-off-by Rajesh Kumbhakar <[email protected]>--- sound/core/hwdep_compat.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)sound/core/hwdep_compat.c +0
-0
sound/core/hwdep_compat.c enum { · line 44
Quoted 10 lines
sound/core/hwdep_compat.c +2
-1@@ -36,11 +36,13 @@ enum { SNDRV_HWDEP_IOCTL_DSP_LOAD32 = _IOW('H', 0x03, struct snd_hwdep_dsp_image32) }; -static long snd_hwdep_ioctl_compat (struct file * file,unsigned int cmd, +static long snd_hwdep_ioctl_compat (struct file *file,unsigned int cmd,unsigned long arg) {struct snd_hwdep *hw = file->private_data; +void __user *argp =compat_ptr (arg);
You shouldn't put a blank line here.
thanks,
Takashi
Alright, I will resubmit the patch.