summaryrefslogtreecommitdiff
path: root/drivers/staging/keucr
diff options
context:
space:
mode:
authorAl Cho <acho@novell.com>2010-11-26 19:07:27 +0800
committerGreg Kroah-Hartman <gregkh@suse.de>2010-11-29 11:40:31 -0800
commit6efe04ee4109a9d3fc0d419667f54861628b0d45 (patch)
tree2927429ecdfe3cfffcf46a2871dea128d5639041 /drivers/staging/keucr
parente93192acff4eaf7024c2450d91f3de69258f1f12 (diff)
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@novell.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/keucr')
-rw-r--r--drivers/staging/keucr/init.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/drivers/staging/keucr/init.c b/drivers/staging/keucr/init.c
index e6c56deec94c..515e448852a0 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);