diff options
| author | bui duc phuc <phucduc.bui@gmail.com> | 2026-07-02 15:44:43 +0700 |
|---|---|---|
| committer | Takashi Iwai <tiwai@suse.de> | 2026-07-03 13:05:31 +0200 |
| commit | b1d9880aaa2114e814229d0b3365cab52c60038a (patch) | |
| tree | d52f9189c79e7d921e99d0ffb6b66a31a4712960 | |
| parent | 866405c5802fecbe30f5b8c27886a0704572b440 (diff) | |
| download | linux-b1d9880aaa2114e814229d0b3365cab52c60038a.tar.gz linux-b1d9880aaa2114e814229d0b3365cab52c60038a.zip | |
ALSA: seq: 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-7-phucduc.bui@gmail.com
| -rw-r--r-- | sound/core/seq/seq_clientmgr.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sound/core/seq/seq_clientmgr.c b/sound/core/seq/seq_clientmgr.c index 28782e1776fa..8fe872367568 100644 --- a/sound/core/seq/seq_clientmgr.c +++ b/sound/core/seq/seq_clientmgr.c @@ -296,11 +296,8 @@ static int snd_seq_open(struct inode *inode, struct file *file) int c, mode; /* client id */ struct snd_seq_client *client; struct snd_seq_user_client *user; - int err; - err = stream_open(inode, file); - if (err < 0) - return err; + stream_open(inode, file); scoped_guard(mutex, ®ister_mutex) { client = seq_create_client1(-1, SNDRV_SEQ_DEFAULT_EVENTS); |
