diff options
| author | bui duc phuc <phucduc.bui@gmail.com> | 2026-07-02 15:44:40 +0700 |
|---|---|---|
| committer | Takashi Iwai <tiwai@suse.de> | 2026-07-03 13:05:30 +0200 |
| commit | 77a5dc04fe7936b021ad7b7ae7c4ba1083d1b68a (patch) | |
| tree | 2c6bf7642cf40cb4ee41cface204e1f5187a71d8 | |
| parent | 44f35a7050c4a8f461bd486ad78c6e0995392feb (diff) | |
| download | linux-77a5dc04fe7936b021ad7b7ae7c4ba1083d1b68a.tar.gz linux-77a5dc04fe7936b021ad7b7ae7c4ba1083d1b68a.zip | |
ALSA: pcm: 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-4-phucduc.bui@gmail.com
| -rw-r--r-- | sound/core/oss/pcm_oss.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sound/core/oss/pcm_oss.c b/sound/core/oss/pcm_oss.c index 9826d9a0be6d..0d7818eb3e14 100644 --- a/sound/core/oss/pcm_oss.c +++ b/sound/core/oss/pcm_oss.c @@ -2495,9 +2495,7 @@ static int snd_pcm_oss_open(struct inode *inode, struct file *file) int nonblock; wait_queue_entry_t wait; - err = nonseekable_open(inode, file); - if (err < 0) - return err; + nonseekable_open(inode, file); pcm = snd_lookup_oss_minor_data(iminor(inode), SNDRV_OSS_DEVICE_TYPE_PCM); |
