mirror of
https://github.com/torvalds/linux.git
synced 2026-09-23 05:04:02 +02:00
ALSA: rawmidi: 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-6-phucduc.bui@gmail.com
This commit is contained in:
parent
290a94d4b9
commit
866405c580
|
|
@ -441,9 +441,7 @@ static int snd_rawmidi_open(struct inode *inode, struct file *file)
|
|||
if ((file->f_flags & O_APPEND) && !(file->f_flags & O_NONBLOCK))
|
||||
return -EINVAL; /* invalid combination */
|
||||
|
||||
err = stream_open(inode, file);
|
||||
if (err < 0)
|
||||
return err;
|
||||
stream_open(inode, file);
|
||||
|
||||
if (maj == snd_major) {
|
||||
rmidi = snd_lookup_minor_data(iminor(inode),
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user