From: Christian Gromm <christian.gromm@microchip.com>
To: Wei Yongjun <weiyj.lk@gmail.com>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Andrey Shvetsov <andrey.shvetsov@k2l.de>,
Shraddha Barke <shraddha.6596@gmail.com>,
Wei Yongjun <weiyongjun1@huawei.com>,
<devel@driverdev.osuosl.org>, <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH -next] staging: most: fix error return code in audio_probe_channel()
Date: Mon, 26 Sep 2016 10:56:06 +0200 [thread overview]
Message-ID: <20160926105606.4d4033be@muaddib> (raw)
In-Reply-To: <20160926074718.GA456@KAR-DK-M21181.mchp-main.com>
On Mon, 26 Sep 2016 09:47:19 +0200
Andrey Shvetsov <andrey.shvetsov@k2l.de> wrote:
> On Sun, Sep 25, 2016 at 03:41:11PM +0000, Wei Yongjun wrote:
> > From: Wei Yongjun <weiyongjun1@huawei.com>
> >
> > Fix to return a negative error code from the audio_set_hw_params() error
> > handling case instead of 0, as done elsewhere in this function.
> >
> > Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
> Signed-off-by: Andrey Shvetsov <andrey.shvetsov@k2l.de>
Signed-off-by: Christian Gromm <christian.gromm@microchip.com>
>
> > ---
> > drivers/staging/most/aim-sound/sound.c | 3 ++-
> > 1 file changed, 2 insertions(+), 1 deletion(-)
> >
> > diff --git a/drivers/staging/most/aim-sound/sound.c b/drivers/staging/most/aim-sound/sound.c
> > index 3dc625c..00f01c9 100644
> > --- a/drivers/staging/most/aim-sound/sound.c
> > +++ b/drivers/staging/most/aim-sound/sound.c
> > @@ -607,7 +607,8 @@ static int audio_probe_channel(struct most_interface *iface, int channel_id,
> > channel->id = channel_id;
> > init_waitqueue_head(&channel->playback_waitq);
> >
> > - if (audio_set_hw_params(&channel->pcm_hardware, pcm_format, cfg))
> > + ret = audio_set_hw_params(&channel->pcm_hardware, pcm_format, cfg);
> > + if (ret)
> > goto err_free_card;
> >
> > snprintf(card->driver, sizeof(card->driver), "%s", DRIVER_NAME);
> >
>
prev parent reply other threads:[~2016-09-26 8:56 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-25 15:41 [PATCH -next] staging: most: fix error return code in audio_probe_channel() Wei Yongjun
2016-09-25 17:26 ` Greg Kroah-Hartman
2016-09-26 7:47 ` Andrey Shvetsov
2016-09-26 8:56 ` Christian Gromm [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160926105606.4d4033be@muaddib \
--to=christian.gromm@microchip.com \
--cc=andrey.shvetsov@k2l.de \
--cc=devel@driverdev.osuosl.org \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=shraddha.6596@gmail.com \
--cc=weiyj.lk@gmail.com \
--cc=weiyongjun1@huawei.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox