soundwire: cadence_master: fix boolean comparisons
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Wed, 1 May 2019 15:57:43 +0000 (10:57 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 2 May 2019 15:16:29 +0000 (17:16 +0200)
No need for explicit test against true

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/cadence_master.c

index 04632a97721e6a10fd70b3ad7a6c44b6a9bcf896..50181752c2a41fccdf3ce4c78846f5701aac88ec 100644 (file)
@@ -1033,7 +1033,7 @@ static struct sdw_cdns_pdi *cdns_find_pdi(struct sdw_cdns *cdns,
        int i;
 
        for (i = 0; i < num; i++) {
-               if (pdi[i].assigned == true)
+               if (pdi[i].assigned)
                        continue;
                pdi[i].assigned = true;
                return &pdi[i];
@@ -1084,7 +1084,7 @@ static int cdns_get_num_pdi(struct sdw_cdns *cdns,
        int i, pdis = 0;
 
        for (i = 0; i < num; i++) {
-               if (pdi[i].assigned == true)
+               if (pdi[i].assigned)
                        continue;
 
                if (pdi[i].ch_count < ch_count)