]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
soundwire: bus: fix boolean comparisons
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Wed, 1 May 2019 15:57:30 +0000 (10:57 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 2 May 2019 15:16:27 +0000 (17:16 +0200)
no need for an explicit test against false
reported by Coccinelle

Reviewed-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/soundwire/bus.c

index 423dc6d17999f39429013d832275f637c6cf34f0..863bf418e342a04a862c35ec4455e84fb961f1e9 100644 (file)
@@ -571,7 +571,7 @@ static int sdw_program_device_num(struct sdw_bus *bus)
                        }
                }
 
-               if (found == false) {
+               if (!found) {
                        /* TODO: Park this device in Group 13 */
                        dev_err(bus->dev, "Slave Entry not found");
                }