aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging
diff options
context:
space:
mode:
authorCho, Yu-Chen <acho@novell.com>2011-05-18 06:40:15 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2011-05-18 11:22:41 -0400
commitd48e5cffb312b08d74c880411b3fb4d5d5ad93f6 (patch)
treebe9c2f87a68c7c4abef655019ed614dec287101e /drivers/staging
parent3aa4fc587df15a7a55bd6e3f3fbdcca30c7acc58 (diff)
staging/keucr: fix transport other code style
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>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/keucr/transport.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/staging/keucr/transport.c b/drivers/staging/keucr/transport.c
index d48f592fe2a..0274cb0edd0 100644
--- a/drivers/staging/keucr/transport.c
+++ b/drivers/staging/keucr/transport.c
@@ -629,8 +629,12 @@ int usb_stor_Bulk_transport(struct scsi_cmnd *srb, struct us_data *us)
629 629
630 /* R/W data */ 630 /* R/W data */
631 if (transfer_length) { 631 if (transfer_length) {
632 unsigned int pipe = srb->sc_data_direction == 632 unsigned int pipe;
633 DMA_FROM_DEVICE ? us->recv_bulk_pipe : us->send_bulk_pipe; 633 if (srb->sc_data_direction == DMA_FROM_DEVICE)
634 pipe = us->recv_bulk_pipe;
635 else
636 pipe = us->send_bulk_pipe;
637
634 result = usb_stor_bulk_srb(us, pipe, srb); 638 result = usb_stor_bulk_srb(us, pipe, srb);
635 /* pr_info("Bulk data transfer result 0x%x\n", result); */ 639 /* pr_info("Bulk data transfer result 0x%x\n", result); */
636 if (result == USB_STOR_XFER_ERROR) 640 if (result == USB_STOR_XFER_ERROR)