summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbui duc phuc <phucduc.bui@gmail.com>2026-07-02 15:44:44 +0700
committerTakashi Iwai <tiwai@suse.de>2026-07-03 13:05:31 +0200
commitb8c89ae642aef22ea059c2ee4ab2dfacb6b65f08 (patch)
tree781790ce8a7a77a9843c13a2115f72662ba69472
parentb1d9880aaa2114e814229d0b3365cab52c60038a (diff)
downloadlinux-stable-b8c89ae642aef22ea059c2ee4ab2dfacb6b65f08.tar.gz
linux-stable-b8c89ae642aef22ea059c2ee4ab2dfacb6b65f08.zip
ALSA: timer: Drop redundant stream_open() return check
The previous conversion from nonseekable_open() to stream_open() retained the existing error check. Since stream_open() always returns 0, remove the dead error handling path. Signed-off-by: bui duc phuc <phucduc.bui@gmail.com> Reviewed-by: Cezary Rojewski <cezary.rojewski@intel.com> Signed-off-by: Takashi Iwai <tiwai@suse.de> Link: https://patch.msgid.link/20260702084445.519669-8-phucduc.bui@gmail.com
-rw-r--r--sound/core/timer.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sound/core/timer.c b/sound/core/timer.c
index 51c6ac4df9f4..937d7996f7ab 100644
--- a/sound/core/timer.c
+++ b/sound/core/timer.c
@@ -1531,11 +1531,8 @@ static int realloc_user_queue(struct snd_timer_user *tu, int size)
static int snd_timer_user_open(struct inode *inode, struct file *file)
{
struct snd_timer_user *tu;
- int err;
- err = stream_open(inode, file);
- if (err < 0)
- return err;
+ stream_open(inode, file);
tu = kzalloc_obj(*tu);
if (tu == NULL)