From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932183AbbBSAp5 (ORCPT ); Wed, 18 Feb 2015 19:45:57 -0500 Received: from mail-pa0-f47.google.com ([209.85.220.47]:40531 "EHLO mail-pa0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754368AbbBSApz (ORCPT ); Wed, 18 Feb 2015 19:45:55 -0500 From: Tolga Ceylan To: Greg Kroah-Hartman , Christoph Hellwig , Hannes Reinecke , Ewan Milne , Alan Cox , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, tolga.ceylan@gmail.com Subject: [PATCH 1/1] Staging: i2o: i2o_scsi: Fixed coding style issue Date: Wed, 18 Feb 2015 16:45:50 -0800 Message-Id: <1424306750-27230-1-git-send-email-tolga.ceylan@gmail.com> X-Mailer: git-send-email 2.3.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Removed assignment in if condition Signed-off-by: Tolga Ceylan --- 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