From patchwork Sat May 9 15:45:52 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 6369861 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 8487B9F32E for ; Sat, 9 May 2015 15:46:35 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B7E562022A for ; Sat, 9 May 2015 15:46:34 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 1F6ED20154 for ; Sat, 9 May 2015 15:46:32 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id BFC3326056A; Sat, 9 May 2015 17:46:29 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=no version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id 4E3F126051D; Sat, 9 May 2015 17:46:26 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 332AA260536; Sat, 9 May 2015 17:46:25 +0200 (CEST) Received: from mail-yh0-f49.google.com (mail-yh0-f49.google.com [209.85.213.49]) by alsa0.perex.cz (Postfix) with ESMTP id 61793260505 for ; Sat, 9 May 2015 17:46:19 +0200 (CEST) Received: by yhw29 with SMTP id 29so26610441yhw.1 for ; Sat, 09 May 2015 08:46:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=Vm8cMpxP0dNcOS6+1VpjWKLhDLtH//MhXDRCnV+x9RU=; b=B7cyBvnCA7irRuQqWnAbGYvZgLkigHeKgtfKx9QWU6kr0R6B2b1eSmOtYGo2H2Mofr qhpUkBNr8aF2Vc3rqGubE9FUiMsL905JS3rSqjJOfeAeGTNAL5VAQhyc56DLILdwaGMA Gf0+YJ3SVU2uf3w4eeT8iJwdAUqERjqOdJsmDSqt1mCoFzJbzfuEFDK1nz/lIYZfK6Gu WpcYtmva2sdLgebyAh/lbt2RIRQjJGtaqY92eINCWVZchHJ6aqY9j6DYQmDjhIPycBe+ LlVXytLzj5nDMVswRNP+q0RKEL2mNYwbHRgSyVBD0WgkEgNi2xGlpMHsRuH8zdblaW7/ t3FQ== X-Received: by 10.170.123.136 with SMTP id p130mr3379655ykb.20.1431186378015; Sat, 09 May 2015 08:46:18 -0700 (PDT) Received: from localhost.localdomain ([187.64.235.17]) by mx.google.com with ESMTPSA id 64sm7364169yhb.54.2015.05.09.08.46.15 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 09 May 2015 08:46:17 -0700 (PDT) From: Fabio Estevam To: broonie@kernel.org Date: Sat, 9 May 2015 12:45:52 -0300 Message-Id: <1431186353-7331-1-git-send-email-festevam@gmail.com> X-Mailer: git-send-email 1.9.1 Cc: Fabio Estevam , alsa-devel@alsa-project.org, timur@tabi.org Subject: [alsa-devel] [PATCH 1/2] ASoC: fsl: fsl_dma: Use true/false for boolean init X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP From: Fabio Estevam Bool initializations should use true and false. Bool tests don't need comparisons. Based on contributions from Joe Perches, Rusty Russell and Bruce W Allan. The semantic patch that makes this change is available in scripts/coccinelle/misc/boolinit.cocci. More information about semantic patching is available at http://coccinelle.lip6.fr/ Signed-off-by: Fabio Estevam Acked-by: Timur Tabi --- sound/soc/fsl/fsl_dma.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/fsl/fsl_dma.c b/sound/soc/fsl/fsl_dma.c index 93d7e56..ccadefc 100644 --- a/sound/soc/fsl/fsl_dma.c +++ b/sound/soc/fsl/fsl_dma.c @@ -445,7 +445,7 @@ static int fsl_dma_open(struct snd_pcm_substream *substream) return ret; } - dma->assigned = 1; + dma->assigned = true; snd_pcm_set_runtime_buffer(substream, &substream->dma_buffer); snd_soc_set_runtime_hwparams(substream, &fsl_dma_hardware); @@ -814,7 +814,7 @@ static int fsl_dma_close(struct snd_pcm_substream *substream) substream->runtime->private_data = NULL; } - dma->assigned = 0; + dma->assigned = false; return 0; }