diff options
| author | bui duc phuc <phucduc.bui@gmail.com> | 2026-07-02 15:44:39 +0700 |
|---|---|---|
| committer | Takashi Iwai <tiwai@suse.de> | 2026-07-03 13:05:30 +0200 |
| commit | 44f35a7050c4a8f461bd486ad78c6e0995392feb (patch) | |
| tree | c873d69ee7d110a4a0a1ef94a0c7c54d742e4932 | |
| parent | 58ad83cf62d1e534bd2c8e1d597acd8213757fda (diff) | |
| download | linux-44f35a7050c4a8f461bd486ad78c6e0995392feb.tar.gz linux-44f35a7050c4a8f461bd486ad78c6e0995392feb.zip | |
ALSA: mixer: oss: Drop redundant nonseekable_open() return check
nonseekable_open() always returns 0, so the error check is unnecessary.
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-3-phucduc.bui@gmail.com
| -rw-r--r-- | sound/core/oss/mixer_oss.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sound/core/oss/mixer_oss.c b/sound/core/oss/mixer_oss.c index 591cff800329..f5bcc7896542 100644 --- a/sound/core/oss/mixer_oss.c +++ b/sound/core/oss/mixer_oss.c @@ -30,9 +30,7 @@ static int snd_mixer_oss_open(struct inode *inode, struct file *file) struct snd_mixer_oss_file *fmixer; int err; - err = nonseekable_open(inode, file); - if (err < 0) - return err; + nonseekable_open(inode, file); card = snd_lookup_oss_minor_data(iminor(inode), SNDRV_OSS_DEVICE_TYPE_MIXER); |
