mirror of
https://github.com/torvalds/linux.git
synced 2026-09-22 12:44:03 +02:00
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
This commit is contained in:
parent
b1d9880aaa
commit
b8c89ae642
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user