Skip to contentSkip to conversation

sound: core: fixed coding style errors

PATCH In review Rajesh Kumbhakar 2 participants 3 messages Feb 22, 2021 – Feb 23, 2021 Sound

lore
Share & tools
lore
#0 lore raw

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

---
 sound/core/hwdep_compat.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
sound/core/hwdep_compat.c +3 -1
index a0b76706c..d8624a14a 100644
@@ -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
#1 lore raw
Quoted 14 lines · Rajesh Kumbhakar

fixing ERROR: "foo * bar" should be "foo *bar" fixing WARNING: Missing a blank line after declarations

---
 sound/core/hwdep_compat.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
sound/core/hwdep_compat.c +0 -0
index a0b76706c..d8624a14a 100644

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