[PATCH v2 1/7] ALSA: control: Drop redundant stream_open() return check

From: phucduc . bui

Date: Thu Jul 02 2026 - 04:55:22 EST


From: bui duc phuc <phucduc.bui@xxxxxxxxx>

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@xxxxxxxxx>
---
sound/core/control.c | 4 +---
1 file changed, 1 insertion(+), 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) {
--
2.43.0