mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-03 07:38:10 +00:00
staging: wlan-ng: hfa384x_usb: Fix multiple line dereference
Refactor code to be more readable and eliminate the checkpatch warning Signed-off-by: Alex Briskin <br.shurik@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
2c5b7943a9
commit
bf334c024f
1 changed files with 7 additions and 9 deletions
|
@ -1344,16 +1344,14 @@ hfa384x_docmd(struct hfa384x *hw,
|
|||
if (result != 0) {
|
||||
kfree(ctlx);
|
||||
} else if (mode == DOWAIT) {
|
||||
struct usbctlx_cmd_completor completor;
|
||||
struct usbctlx_cmd_completor cmd_completor;
|
||||
struct usbctlx_completor *completor;
|
||||
|
||||
result =
|
||||
hfa384x_usbctlx_complete_sync(hw, ctlx,
|
||||
init_cmd_completor(&completor,
|
||||
&ctlx->
|
||||
inbuf.
|
||||
cmdresp,
|
||||
&cmd->
|
||||
result));
|
||||
completor = init_cmd_completor(&cmd_completor,
|
||||
&ctlx->inbuf.cmdresp,
|
||||
&cmd->result);
|
||||
|
||||
result = hfa384x_usbctlx_complete_sync(hw, ctlx, completor);
|
||||
}
|
||||
|
||||
done:
|
||||
|
|
Loading…
Reference in a new issue