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>] [day] [month] [year] [list]
Message-ID: <20200113131247.141554-1-chenzhou10@huawei.com>
Date:   Mon, 13 Jan 2020 21:12:47 +0800
From:   Chen Zhou <chenzhou10@...wei.com>
To:     <jejb@...ux.ibm.com>, <martin.petersen@...cle.com>
CC:     <linux-scsi@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
        <chenzhou10@...wei.com>
Subject: [PATCH] scsi: csiostor: simplify macro CSIO_VALID_WWN

The conversion to bool is in macro CSIO_VALID_WWN not needed, remove it.

Signed-off-by: Chen Zhou <chenzhou10@...wei.com>
---
 drivers/scsi/csiostor/csio_defs.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/scsi/csiostor/csio_defs.h b/drivers/scsi/csiostor/csio_defs.h
index c38017b..c5049e3 100644
--- a/drivers/scsi/csiostor/csio_defs.h
+++ b/drivers/scsi/csiostor/csio_defs.h
@@ -46,7 +46,7 @@
 #define CSIO_INVALID_IDX		0xFFFFFFFF
 #define CSIO_INC_STATS(elem, val)	((elem)->stats.val++)
 #define CSIO_DEC_STATS(elem, val)	((elem)->stats.val--)
-#define CSIO_VALID_WWN(__n)		((*__n >> 4) == 0x5 ? true : false)
+#define CSIO_VALID_WWN(__n)		((*__n >> 4) == 0x5)
 #define CSIO_DID_MASK			0xFFFFFF
 #define CSIO_WORD_TO_BYTE		4
 
-- 
2.7.4

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ