staging/keucr: fix transport other code style
authorCho, Yu-Chen <acho@novell.com>
Wed, 18 May 2011 10:40:15 +0000 (18:40 +0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 18 May 2011 15:22:41 +0000 (08:22 -0700)
fix keucr transport.c other coding style but not from checkpatch.pl.
replace ternary conditional "?:" with if/else

Signed-off-by: Cho, Yu-Chen <acho@novell.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/keucr/transport.c

index d48f592fe2aad71fdb5e47299cdc9db4d9f4839a..0274cb0edd01652b4be420905dbfdb91eaf70585 100644 (file)
@@ -629,8 +629,12 @@ int usb_stor_Bulk_transport(struct scsi_cmnd *srb, struct us_data *us)
 
        /*  R/W data */
        if (transfer_length) {
-               unsigned int pipe = srb->sc_data_direction ==
-               DMA_FROM_DEVICE ? us->recv_bulk_pipe : us->send_bulk_pipe;
+               unsigned int pipe;
+               if (srb->sc_data_direction == DMA_FROM_DEVICE)
+                       pipe = us->recv_bulk_pipe;
+               else
+                       pipe = us->send_bulk_pipe;
+
                result = usb_stor_bulk_srb(us, pipe, srb);
                /* pr_info("Bulk data transfer result 0x%x\n", result); */
                if (result == USB_STOR_XFER_ERROR)