Skip to content

Commit 9282cfa

Browse files
ColinIanKingvinodkoul
authored andcommitted
soundwire: intel_auxdevice: remove redundant assignment to variable link_flags
The variable link_flags is being initialized with a value that is never read, it is being re-assigned later on. The initialization is redundant and can be removed. Cleans up clang scan build warning: drivers/soundwire/intel_auxdevice.c:624:2: warning: Value stored to 'link_flags' is never read [deadcode.DeadStores] Signed-off-by: Colin Ian King <colin.i.king@gmail.com> Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Link: https://lore.kernel.org/r/20240205182436.1843447-1-colin.i.king@gmail.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
1 parent 0707496 commit 9282cfa

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/soundwire/intel_auxdevice.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -621,8 +621,6 @@ static int __maybe_unused intel_resume(struct device *dev)
621621
return 0;
622622
}
623623

624-
link_flags = md_flags >> (bus->link_id * 8);
625-
626624
if (pm_runtime_suspended(dev)) {
627625
dev_dbg(dev, "pm_runtime status was suspended, forcing active\n");
628626

0 commit comments

Comments
 (0)