Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <acho@novell.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

authored by

Al Cho and committed by
Greg Kroah-Hartman
6efe04ee e93192ac

+7 -2
+7 -2
drivers/staging/keucr/init.c
··· 364 364 } 365 365 366 366 if (buf) { 367 - unsigned int pipe = fDir == 368 - FDIR_READ ? us->recv_bulk_pipe : us->send_bulk_pipe; 367 + unsigned int pipe = fDir; 368 + 369 + if (fDir == FDIR_READ) 370 + pipe = us->recv_bulk_pipe; 371 + else 372 + pipe = us->send_bulk_pipe; 373 + 369 374 /* Bulk */ 370 375 if (use_sg) 371 376 result = usb_stor_bulk_srb(us, pipe, us->srb);