diff options
| author | bui duc phuc <phucduc.bui@gmail.com> | 2026-07-02 15:44:38 +0700 |
|---|---|---|
| committer | Takashi Iwai <tiwai@suse.de> | 2026-07-03 13:05:30 +0200 |
| commit | 58ad83cf62d1e534bd2c8e1d597acd8213757fda (patch) | |
| tree | 68e315597226265245b9154e1b26b0a53452ddee | |
| parent | c0933934d5d96fc641e8d0025f9099e554a7b47a (diff) | |
| download | linux-stable-58ad83cf62d1e534bd2c8e1d597acd8213757fda.tar.gz linux-stable-58ad83cf62d1e534bd2c8e1d597acd8213757fda.zip | |
ALSA: control: 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-2-phucduc.bui@gmail.com
| -rw-r--r-- | sound/core/control.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sound/core/control.c b/sound/core/control.c index 7a8dc506221e..037e455bb11b 100644 --- a/sound/core/control.c +++ b/sound/core/control.c @@ -55,9 +55,7 @@ static int snd_ctl_open(struct inode *inode, struct file *file) struct snd_ctl_file *ctl; int i, err; - err = stream_open(inode, file); - if (err < 0) - return err; + stream_open(inode, file); card = snd_lookup_minor_data(iminor(inode), SNDRV_DEVICE_TYPE_CONTROL); if (!card) { |
