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-next>] [day] [month] [year] [list]
Message-Id: <1424306750-27230-1-git-send-email-tolga.ceylan@gmail.com>
Date:	Wed, 18 Feb 2015 16:45:50 -0800
From:	Tolga Ceylan <tolga.ceylan@...il.com>
To:	Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
	Christoph Hellwig <hch@...radead.org>,
	Hannes Reinecke <hare@...e.de>, Ewan Milne <emilne@...hat.com>,
	Alan Cox <alan@...ux.intel.com>, devel@...verdev.osuosl.org,
	linux-kernel@...r.kernel.org, tolga.ceylan@...il.com
Subject: [PATCH 1/1] Staging: i2o: i2o_scsi: Fixed coding style issue

Removed assignment in if condition

Signed-off-by: Tolga Ceylan <tolga.ceylan@...il.com>
---
 drivers/staging/i2o/i2o_scsi.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/staging/i2o/i2o_scsi.c b/drivers/staging/i2o/i2o_scsi.c
index 1b11dcb..f320366 100644
--- a/drivers/staging/i2o/i2o_scsi.c
+++ b/drivers/staging/i2o/i2o_scsi.c
@@ -750,7 +750,8 @@ static int i2o_scsi_bios_param(struct scsi_device *sdev,
 	size = capacity;
 	ip[0] = 64;		/* heads                        */
 	ip[1] = 32;		/* sectors                      */
-	if ((ip[2] = size >> 11) > 1024) {	/* cylinders, test for big disk */
+	ip[2] = size >> 11;
+	if (ip[2] > 1024) {	/* cylinders, test for big disk */
 		ip[0] = 255;	/* heads                        */
 		ip[1] = 63;	/* sectors                      */
 		ip[2] = size / (255 * 63);	/* cylinders                    */
-- 
2.3.0

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ