[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <61f99cb160446c28ce1930945bb23d4864897d32.1290769009.git.acho@novell.com>
Date: Fri, 26 Nov 2010 19:07:27 +0800
From: Al Cho <acho@...ell.com>
To: gregkh@...e.de
Cc: linux-kernel@...r.kernel.org, devel@...verdev.osuosl.org,
yiyingc@....com.tw, jlee@...ell.com, acho@...ell.com,
segooon@...il.com, error27@...il.com
Subject: [PATCH 2/2] staging/keucr: fix keucr init other coding style
fix keucr init.c other coding style but not from checkpatch.pl.
replace ternary conditional "?:" with if/else.
Signed-off-by: Al Cho <acho@...ell.com>
---
drivers/staging/keucr/init.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/drivers/staging/keucr/init.c b/drivers/staging/keucr/init.c
index e6c56de..515e448 100644
--- a/drivers/staging/keucr/init.c
+++ b/drivers/staging/keucr/init.c
@@ -364,8 +364,13 @@ int ENE_SendScsiCmd(struct us_data *us, BYTE fDir, void *buf, int use_sg)
}
if (buf) {
- unsigned int pipe = fDir ==
- FDIR_READ ? us->recv_bulk_pipe : us->send_bulk_pipe;
+ unsigned int pipe = fDir;
+
+ if (fDir == FDIR_READ)
+ pipe = us->recv_bulk_pipe;
+ else
+ pipe = us->send_bulk_pipe;
+
/* Bulk */
if (use_sg)
result = usb_stor_bulk_srb(us, pipe, us->srb);
--
1.7.1
--
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