[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <a52b4fbd-1d97-d8b8-dd2c-fac30c6add4b@intel.com>
Date: Tue, 6 Aug 2019 17:31:58 +0200
From: Cezary Rojewski <cezary.rojewski@...el.com>
To: Pierre-Louis Bossart <pierre-louis.bossart@...ux.intel.com>
Cc: alsa-devel@...a-project.org, linux-kernel@...r.kernel.org,
tiwai@...e.de, broonie@...nel.org, vkoul@...nel.org,
gregkh@...uxfoundation.org, jank@...ence.com,
srinivas.kandagatla@...aro.org, Blauciak@...r.kernel.org,
Slawomir <slawomir.blauciak@...el.com>,
Sanyog Kale <sanyog.r.kale@...el.com>
Subject: Re: [PATCH 09/17] soundwire: stream: remove unnecessary variable
initializations
On 2019-08-06 02:55, Pierre-Louis Bossart wrote:
> @@ -1493,6 +1493,11 @@ static int _sdw_prepare_stream(struct sdw_stream_runtime *stream)
> }
> }
>
> + if (!bus) {
> + pr_err("Configuration error in %s\n", __func__);
> + return -EINVAL;
> + }
> +
This should probably be located in separate path - not at all an
initialization removal.
> @@ -1573,6 +1578,11 @@ static int _sdw_enable_stream(struct sdw_stream_runtime *stream)
> }
> }
>
> + if (!bus) {
> + pr_err("Configuration error in %s\n", __func__);
> + return -EINVAL;
> + }
> +
Same here.
> @@ -1639,13 +1650,14 @@ static int _sdw_disable_stream(struct sdw_stream_runtime *stream)
>
> ret = do_bank_switch(stream);
> if (ret < 0) {
> - dev_err(bus->dev, "Bank switch failed: %d\n", ret);
> + pr_err("Bank switch failed: %d\n", ret);
> return ret;
> }
Here too.
I might have missed something though I bet you got my point.
Powered by blists - more mailing lists