Skip to content

Commit

Permalink
ASoC: wcd9335: Remove unnecessary conversion to bool
Browse files Browse the repository at this point in the history
The '>=' expression itself is bool, no need to convert it to bool.
Fix the following coccicheck warning:

./sound/soc/codecs/wcd9335.c:3982:25-30: WARNING: conversion to bool not needed here

Reported-by: Tosk Robot <tencent_os_robot@tencent.com>
Signed-off-by: Kaixu Xia <kaixuxia@tencent.com>
Link: https://lore.kernel.org/r/1604652816-1330-1-git-send-email-kaixuxia@tencent.com
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
Kaixu Xia authored and Mark Brown committed Nov 18, 2020
1 parent 5268e0b commit a5ec7c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/codecs/wcd9335.c
Original file line number Diff line number Diff line change
Expand Up @@ -3979,7 +3979,7 @@ static irqreturn_t wcd9335_slimbus_irq(int irq, void *data)
}

for_each_set_bit(j, &status, 32) {
tx = (j >= 16 ? true : false);
tx = (j >= 16);
port_id = (tx ? j - 16 : j);
regmap_read(wcd->if_regmap,
WCD9335_SLIM_PGD_PORT_INT_RX_SOURCE0 + j, &val);
Expand Down

0 comments on commit a5ec7c9

Please sign in to comment.