soundwire: avoid multiple assignments
authorVinod Koul <vkoul@kernel.org>
Thu, 2 May 2019 10:59:26 +0000 (16:29 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 2 May 2019 15:17:51 +0000 (17:17 +0200)
commit72b16d4a91d44c6b09e599fd49379440afa419c2
tree0eb5cc10bac2fbd6fae2c2388ea836aae75d0d09
parent1215daee56edc1640997b439506b2006e47574c0
soundwire: avoid multiple assignments

Modify the code to avoid multiple assignments by assigning to variable
after error checks in soundwire bus.

CHECK: multiple assignments should be avoided

Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/soundwire/bus.c