soundwire: stream: Invert logic on runtime alloc flags
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Fri, 2 Jun 2023 10:11:39 +0000 (11:11 +0100)
committerVinod Koul <vkoul@kernel.org>
Thu, 8 Jun 2023 11:39:11 +0000 (17:09 +0530)
commite0240644e7cbb0fce4ea4e3fdcefdaa1a39eb9ea
tree524abb6557bb35723a58f0b27954a321d8da4914
parent2b2da40979dde8466dd1b7b5969af5fa5aa52cbd
soundwire: stream: Invert logic on runtime alloc flags

sdw_stream_add_slave/master have flags to indicate if the master or
slave runtime where allocated in that call to the function. Currently
these flags are cleared on all the paths where the runtime is not
allocated, it is more logic and simpler to set the flag on the one path
where the runtime is allocated.

Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20230602101140.2040141-4-ckeepax@opensource.cirrus.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/soundwire/stream.c