Commit bf334c02 authored by Alex Briskin's avatar Alex Briskin Committed by Greg Kroah-Hartman

staging: wlan-ng: hfa384x_usb: Fix multiple line dereference

Refactor code to be more readable and eliminate the checkpatch
warning
Signed-off-by: default avatarAlex Briskin <br.shurik@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 2c5b7943
...@@ -1344,16 +1344,14 @@ hfa384x_docmd(struct hfa384x *hw, ...@@ -1344,16 +1344,14 @@ hfa384x_docmd(struct hfa384x *hw,
if (result != 0) { if (result != 0) {
kfree(ctlx); kfree(ctlx);
} else if (mode == DOWAIT) { } else if (mode == DOWAIT) {
struct usbctlx_cmd_completor completor; struct usbctlx_cmd_completor cmd_completor;
struct usbctlx_completor *completor;
result = completor = init_cmd_completor(&cmd_completor,
hfa384x_usbctlx_complete_sync(hw, ctlx, &ctlx->inbuf.cmdresp,
init_cmd_completor(&completor, &cmd->result);
&ctlx->
inbuf. result = hfa384x_usbctlx_complete_sync(hw, ctlx, completor);
cmdresp,
&cmd->
result));
} }
done: done:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment