lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20160407041739.GA8137@lkp-nhm1>
Date:	Thu, 7 Apr 2016 12:17:39 +0800
From:	kbuild test robot <lkp@...el.com>
To:	Yong Li <yong.b.li@...el.com>
Cc:	kbuild-all@...org, linux-gpio@...r.kernel.org,
	linux-kernel@...r.kernel.org, linus.walleij@...aro.org,
	gnurou@...il.com, yong.b.li@...el.com,
	andriy.shevchenko@...ux.intel.com, ismo.puustinen@...el.com,
	preid@...ctromag.com.au
Subject: [PATCH] gpio: pca953x: fix boolreturn.cocci warnings

drivers/gpio/gpio-pca953x.c:522:10-11: WARNING: return of 0/1 in function 'pca953x_irq_pending' with return type bool

 Return statements in functions returning bool should use
 true/false instead of 1/0.
Generated by: scripts/coccinelle/misc/boolreturn.cocci

CC: Yong Li <yong.b.li@...el.com>
Signed-off-by: Fengguang Wu <fengguang.wu@...el.com>
---

 gpio-pca953x.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- a/drivers/gpio/gpio-pca953x.c
+++ b/drivers/gpio/gpio-pca953x.c
@@ -519,12 +519,12 @@ static bool pca953x_irq_pending(struct p
 		/* Read the current interrupt status from the device */
 		ret = pca953x_read_regs(chip, PCAL953X_INT_STAT, trigger);
 		if (ret)
-			return 0;
+			return false;
 
 		/* Check latched inputs and clear interrupt status */
 		ret = pca953x_read_regs(chip, PCA953X_INPUT, cur_stat);
 		if (ret)
-			return 0;
+			return false;
 
 		for (i = 0; i < NBANK(chip); i++) {
 			/* Apply filter for rising/falling edge selection */

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ