From: Al Cho Date: Fri, 26 Nov 2010 11:07:27 +0000 (+0800) Subject: staging: keucr: fix keucr init other coding style X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=6efe04ee4109a9d3fc0d419667f54861628b0d45;p=linux-beck.git 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 Signed-off-by: Greg Kroah-Hartman --- 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);