From patchwork Tue Jun 2 06:40:42 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 6527051 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id D96C4C0020 for ; Tue, 2 Jun 2015 06:43:35 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D5FF420490 for ; Tue, 2 Jun 2015 06:43:34 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 08AE020450 for ; Tue, 2 Jun 2015 06:43:34 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Yzfsz-0003VI-4V; Tue, 02 Jun 2015 06:41:17 +0000 Received: from mail-wi0-f179.google.com ([209.85.212.179]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Yzfsv-0003TW-QO for linux-arm-kernel@lists.infradead.org; Tue, 02 Jun 2015 06:41:15 +0000 Received: by wibut5 with SMTP id ut5so58896311wib.1 for ; Mon, 01 Jun 2015 23:40:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id; bh=K53MWq8bXxey2W9RSygWm6e9bhJ9jcoc8S8JvtKl1Zk=; b=Lp8E1Bkd8PnlSRc3P6DeWaYpzpSUxhWzNCFqwvQREiOkviKHnpP0ljKweTBiy3nHQ7 A0egeCUPpqzf6+IE0tbANI00StpOBwKQEf9z5YAJob8TWBHaTrBQEloKR4bm8rHIuuQb cy1kNMemLhDzygxiG+6WHAQf/FacSeVsucVdYhuwfGD20NP6nL6r3Zylc5B8tr3DgehP SsGkL2vA7mlTCby3JgdD5fe5T9hDHA6wkGyAKp88fdfw2sH2iOV6WB1yclL5SHW27ksH mrT7FB5QWd+kL/4nm0iN4jRG8Ma8nHNjnWLxf20xCaEMI4MrLZ4c2vAqMBqiPrnxmh1H u2Dg== X-Gm-Message-State: ALoCoQnf9EmqyyqzdpPKFJGh1MJdIxCC6xmxWhDi6JkTUYCYIfbu2sp5OI8sp1yNPiI2Ktnvxqwe X-Received: by 10.180.82.100 with SMTP id h4mr27782803wiy.34.1433227251788; Mon, 01 Jun 2015 23:40:51 -0700 (PDT) Received: from localhost (nat-35.starnet.cz. [178.255.168.35]) by mx.google.com with ESMTPSA id ej5sm25216785wjd.22.2015.06.01.23.40.50 (version=TLSv1.1 cipher=RC4-SHA bits=128/128); Mon, 01 Jun 2015 23:40:50 -0700 (PDT) From: Michal Simek To: Greg Kroah-Hartman Subject: [PATCH] char:xilinx_hwicap:buffer_icap - change 1/0 to true/false for bool type variable in function buffer_icap_set_configuration(). Date: Tue, 2 Jun 2015 08:40:42 +0200 Message-Id: <24f8e2f2b3e8473019f67a7d72903e9f927b4613.1433227230.git.michal.simek@xilinx.com> X-Mailer: git-send-email 2.3.5 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150601_234114_049965_5EE81F98 X-CRM114-Status: UNSURE ( 9.08 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.7 (/) Cc: monstr@monstr.eu, Arnd Bergmann , linux-kernel@vger.kernel.org, =?UTF-8?q?S=C3=B6ren=20Brinkmann?= , Shailendra Verma , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Shailendra Verma The variable dirty is bool type. Hence assign the variable with bool value true/false instead of 1/0. Signed-off-by: Shailendra Verma Tested-by: Michal Simek Acked-by: Moritz Fischer --- drivers/char/xilinx_hwicap/buffer_icap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/char/xilinx_hwicap/buffer_icap.c b/drivers/char/xilinx_hwicap/buffer_icap.c index 05d897764f02..53c3882e4981 100644 --- a/drivers/char/xilinx_hwicap/buffer_icap.c +++ b/drivers/char/xilinx_hwicap/buffer_icap.c @@ -270,7 +270,7 @@ int buffer_icap_set_configuration(struct hwicap_drvdata *drvdata, u32 *data, int status; s32 buffer_count = 0; s32 num_writes = 0; - bool dirty = 0; + bool dirty = false; u32 i; void __iomem *base_address = drvdata->base_address; @@ -279,7 +279,7 @@ int buffer_icap_set_configuration(struct hwicap_drvdata *drvdata, u32 *data, /* Copy data to bram */ buffer_icap_set_bram(base_address, buffer_count, data[i]); - dirty = 1; + dirty = true; if (buffer_count < XHI_MAX_BUFFER_INTS - 1) { buffer_count++; @@ -299,7 +299,7 @@ int buffer_icap_set_configuration(struct hwicap_drvdata *drvdata, u32 *data, buffer_count = 0; num_writes++; - dirty = 0; + dirty = false; } /* Write unwritten data to ICAP */