]> git.baikalelectronics.ru Git - kernel.git/commit
staging: wlan-ng: Fix third argument going over 80 characters
authorJohn B. Wyatt IV <jbwyatt4@gmail.com>
Sat, 21 Mar 2020 22:58:08 +0000 (15:58 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 23 Mar 2020 10:43:42 +0000 (11:43 +0100)
commit16856633458f7d948e5b514cba1f1910d907a902
tree410b1543873a373173c86ed34fdaec22062559db
parent6ded4460cdff0238ab4910d8344d9731d7a49790
staging: wlan-ng: Fix third argument going over 80 characters

Create a new 'status' variable to store the value of a long argument
that goes over 80 characters. The status variable is also used for
an if check. Replacing that long statement in both places makes the
code much easier to read.

Note: the status variable is assigned after a needed byte order
conversion for usbin->rxfrm.desc.status, which uses a reference.

Issue reported by checkpatch.

Suggested-by: Stefano Brivio <sbrivio@redhat.com>
Signed-off-by: John B. Wyatt IV <jbwyatt4@gmail.com>
Reviewed-by: Stefano Brivio <sbrivio@redhat.com>
Link: https://lore.kernel.org/r/20200321225808.2494564-1-jbwyatt4@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wlan-ng/hfa384x_usb.c