soundwire: stream: remove useless initialization of local variable
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Thu, 11 Apr 2019 03:17:00 +0000 (22:17 -0500)
committerVinod Koul <vkoul@kernel.org>
Sun, 14 Apr 2019 10:03:26 +0000 (15:33 +0530)
no need to reset return value.

Detected with cppcheck:
[drivers/soundwire/stream.c:332]: (style) Variable 'ret' is assigned a
value that is never used.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/soundwire/stream.c

index bd879b1a76c89c82094a16c31ac1fd044dd64dbe..63b162feecfc88ec925aac5cf6a7df798d1676f0 100644 (file)
@@ -327,7 +327,7 @@ static int sdw_enable_disable_master_ports(struct sdw_master_runtime *m_rt,
        struct sdw_transport_params *t_params = &p_rt->transport_params;
        struct sdw_bus *bus = m_rt->bus;
        struct sdw_enable_ch enable_ch;
-       int ret = 0;
+       int ret;
 
        enable_ch.port_num = p_rt->num;
        enable_ch.ch_mask = p_rt->ch_mask;