Skip to content

Commit

Permalink
staging: keucr: fix keucr init other coding style
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Al Cho authored and Greg Kroah-Hartman committed Nov 29, 2010
1 parent e93192a commit 6efe04e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions drivers/staging/keucr/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 6efe04e

Please sign in to comment.