Commit 4c568602 authored by Pierre-Louis Bossart's avatar Pierre-Louis Bossart Committed by Greg Kroah-Hartman

soundwire: cadence_master: fix boolean comparisons

No need for explicit test against true
Reviewed-by: default avatarTakashi Iwai <tiwai@suse.de>
Signed-off-by: default avatarPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f6e20967
...@@ -1033,7 +1033,7 @@ static struct sdw_cdns_pdi *cdns_find_pdi(struct sdw_cdns *cdns, ...@@ -1033,7 +1033,7 @@ static struct sdw_cdns_pdi *cdns_find_pdi(struct sdw_cdns *cdns,
int i; int i;
for (i = 0; i < num; i++) { for (i = 0; i < num; i++) {
if (pdi[i].assigned == true) if (pdi[i].assigned)
continue; continue;
pdi[i].assigned = true; pdi[i].assigned = true;
return &pdi[i]; return &pdi[i];
...@@ -1084,7 +1084,7 @@ static int cdns_get_num_pdi(struct sdw_cdns *cdns, ...@@ -1084,7 +1084,7 @@ static int cdns_get_num_pdi(struct sdw_cdns *cdns,
int i, pdis = 0; int i, pdis = 0;
for (i = 0; i < num; i++) { for (i = 0; i < num; i++) {
if (pdi[i].assigned == true) if (pdi[i].assigned)
continue; continue;
if (pdi[i].ch_count < ch_count) if (pdi[i].ch_count < ch_count)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment