staging: r8188eu: simplify two_out_pipe
authorMartin Kaiser <martin@kaiser.cx>
Sat, 6 Aug 2022 19:55:37 +0000 (21:55 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 16 Aug 2022 13:17:58 +0000 (15:17 +0200)
commit68c72bcf610f68bc4e2438e2bc9a2d945777fa73
tree9a2d2ad41ef31c73f83bcd2b7b7c4b2b7b3c18f9
parent52a5bba72c834a7749df70f77396cb21e96b74ee
staging: r8188eu: simplify two_out_pipe

Simplify the two_out_pipe function. Move common settings out of the
if clause.

Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> # Edimax N150
Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Link: https://lore.kernel.org/r/20220806195540.777390-11-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/hal/usb_halinit.c