[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20160924183110.s4lxuigycpxegamq@sirena.org.uk>
Date: Sat, 24 Sep 2016 19:31:10 +0100
From: Mark Brown <broonie@...nel.org>
To: Nikita Yushchenko <nikita.yoush@...entembedded.com>
Cc: Liam Girdwood <lgirdwood@...il.com>,
Jaroslav Kysela <perex@...ex.cz>,
Takashi Iwai <tiwai@...e.com>,
Helen Koike <helen.koike@...labora.co.uk>,
Lars-Peter Clausen <lars@...afoo.de>,
Sebastian Reichel <sre@...nel.org>,
alsa-devel@...a-project.org, linux-kernel@...r.kernel.org,
Chris Healy <cphealy@...il.com>
Subject: Re: [PATCH] ASoC: tpa6130a2: fix volume setting when no stream is
running
On Thu, Sep 22, 2016 at 01:10:40PM +0300, Nikita Yushchenko wrote:
> - ret = regulator_disable(data->supply);
> - if (ret != 0) {
> + ret2 = regulator_disable(data->supply);
> + if (ret2 != 0) {
> dev_err(data->dev,
> - "Failed to disable supply: %d\n", ret);
> - return ret;
> + "Failed to disable supply: %d\n", ret2);
> + return ret ? ret : ret2;
> }
The ternery operator to save the error handling block is a bit too cute
to be clear, it'd be better to just handle each error directly. Can you
please send a followup patch fixing this?
Download attachment "signature.asc" of type "application/pgp-signature" (456 bytes)
Powered by blists - more mailing lists