[PATCH v2 7/7] ALSA: timer: Drop redundant stream_open() return check

From: phucduc . bui

Date: Thu Jul 02 2026 - 04:56:59 EST


From: bui duc phuc <phucduc.bui@xxxxxxxxx>

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@xxxxxxxxx>
---
sound/core/timer.c | 5 +----
1 file changed, 1 insertion(+), 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)
--
2.43.0