aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sound/core/hwdep.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sound/core/hwdep.c b/sound/core/hwdep.c
index 9d7e5039c8930..09200df2932c7 100644
--- a/sound/core/hwdep.c
+++ b/sound/core/hwdep.c
@@ -288,11 +288,10 @@ static int snd_hwdep_control_ioctl(struct snd_card *card,
}
if (device >= SNDRV_MINOR_HWDEPS)
device = -1;
- if (put_user(device, (int __user *)arg))
- return -EFAULT;
- return 0;
}
- break;
+ if (put_user(device, (int __user *)arg))
+ return -EFAULT;
+ return 0;
}
case SNDRV_CTL_IOCTL_HWDEP_INFO:
{