staging:wlan-ng Fix multiple line dereference
PATCH 1/1 staging:wlan-ng Fix multiple line dereference
This patch fixes multiple line dereference Warning reported by checkpatch script. This is done to simplify the code and make it more readable.
Signed-off-by Janani Sankara Babu <[email protected]>
--- drivers/staging/wlan-ng/hfa384x_usb.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-)
drivers/staging/wlan-ng/hfa384x_usb.c +4 -8
@@ -1345,15 +1345,11 @@ static int hfa384x_usbctlx_complete_sync(struct hfa384x *hw,kfree (ctlx); }else if (mode ==DOWAIT ) {struct usbctlx_cmd_completor completor; +struct usbctlx_completor *cmplt; - result = -hfa384x_usbctlx_complete_sync (hw, ctlx, -init_cmd_completor (&completor, - &ctlx-> - inbuf. - cmdresp, - &cmd-> - result)); + cmplt =init_cmd_completor (&completor, &ctlx->inbuf.cmdresp, + &cmd->result); + result =hfa384x_usbctlx_complete_sync (hw, ctlx, cmplt); } done:
Signature · 1 line
1.9.1
Greg KH
maintainerQuoted 5 lines · janani-sankarababu
This patch fixes multiple line dereference Warning reported by checkpatch script. This is done to simplify the code and make it more readable.
Signed-off-by Janani Sankara Babu <[email protected]>
Same "From:" line problem again :(