staging: keucr: fix keucr init other coding style
authorAl Cho <acho@novell.com>
Fri, 26 Nov 2010 11:07:27 +0000 (19:07 +0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 29 Nov 2010 19:40:31 +0000 (11:40 -0800)
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>
drivers/staging/keucr/init.c

index e6c56deec94cd9da0066227de1bbac0c36dbdab3..515e448852a0a32c5b1a0482f2190a5a4b918fbf 100644 (file)
@@ -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);