Commit 10583cda authored by Pierre-Louis Bossart's avatar Pierre-Louis Bossart Committed by Mark Brown

ASoC: Intel: Atom: simplify boolean tests

Detected with Coccinelle
Signed-off-by: default avatarPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent e295450d
...@@ -647,7 +647,7 @@ static int sst_swm_mixer_event(struct snd_soc_dapm_widget *w, ...@@ -647,7 +647,7 @@ static int sst_swm_mixer_event(struct snd_soc_dapm_widget *w,
set_mixer = false; set_mixer = false;
} }
if (set_mixer == false) if (!set_mixer)
return 0; return 0;
if (SND_SOC_DAPM_EVENT_ON(event) || if (SND_SOC_DAPM_EVENT_ON(event) ||
......
...@@ -190,7 +190,7 @@ int sst_fill_stream_params(void *substream, ...@@ -190,7 +190,7 @@ int sst_fill_stream_params(void *substream,
map = ctx->pdata->pdev_strm_map; map = ctx->pdata->pdev_strm_map;
map_size = ctx->pdata->strm_map_size; map_size = ctx->pdata->strm_map_size;
if (is_compress == true) if (is_compress)
cstream = (struct snd_compr_stream *)substream; cstream = (struct snd_compr_stream *)substream;
else else
pstream = (struct snd_pcm_substream *)substream; pstream = (struct snd_pcm_substream *)substream;
......
...@@ -334,7 +334,7 @@ static int sst_acpi_probe(struct platform_device *pdev) ...@@ -334,7 +334,7 @@ static int sst_acpi_probe(struct platform_device *pdev)
return ret; return ret;
ret = is_byt_cr(dev, &bytcr); ret = is_byt_cr(dev, &bytcr);
if (!((ret < 0) || (bytcr == false))) { if (!(ret < 0 || !bytcr)) {
dev_info(dev, "Detected Baytrail-CR platform\n"); dev_info(dev, "Detected Baytrail-CR platform\n");
/* override resource info */ /* override resource info */
......
...@@ -146,7 +146,7 @@ static int sst_power_control(struct device *dev, bool state) ...@@ -146,7 +146,7 @@ static int sst_power_control(struct device *dev, bool state)
int ret = 0; int ret = 0;
int usage_count = 0; int usage_count = 0;
if (state == true) { if (state) {
ret = pm_runtime_get_sync(dev); ret = pm_runtime_get_sync(dev);
usage_count = GET_USAGE_COUNT(dev); usage_count = GET_USAGE_COUNT(dev);
dev_dbg(ctx->dev, "Enable: pm usage count: %d\n", usage_count); dev_dbg(ctx->dev, "Enable: pm usage count: %d\n", usage_count);
......
...@@ -269,7 +269,7 @@ static void sst_do_memcpy(struct list_head *memcpy_list) ...@@ -269,7 +269,7 @@ static void sst_do_memcpy(struct list_head *memcpy_list)
struct sst_memcpy_list *listnode; struct sst_memcpy_list *listnode;
list_for_each_entry(listnode, memcpy_list, memcpylist) { list_for_each_entry(listnode, memcpy_list, memcpylist) {
if (listnode->is_io == true) if (listnode->is_io)
memcpy32_toio((void __iomem *)listnode->dstn, memcpy32_toio((void __iomem *)listnode->dstn,
listnode->src, listnode->size); listnode->src, listnode->size);
else else
......
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