]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
staging: wlan-ng: Replace data type declaration with variable of same type in prism2m...
authorSergio Paracuellos <sergio.paracuellos@gmail.com>
Wed, 19 Oct 2016 15:51:30 +0000 (17:51 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 25 Oct 2016 08:48:50 +0000 (10:48 +0200)
sizeof(var) instead of sizeof(struct XXX) is preferred.

It also fix the following checkpatch.pl script warning:
WARNING: line over 80 characters

Fix this two in prism2mgmt.c file.

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wlan-ng/prism2mgmt.c

index f63704a54073a92d66966c3d011d9f754f18ea97..16fb2d3e0f51ab2a39e770ec6a3ef146626bb08c 100644 (file)
@@ -293,7 +293,7 @@ int prism2mgmt_scan(struct wlandevice *wlandev, void *msgp)
 
        result = hfa384x_drvr_setconfig(hw,
                                        HFA384x_RID_HOSTSCAN, &scanreq,
-                                       sizeof(struct hfa384x_host_scan_request_data));
+                                       sizeof(scanreq));
        if (result) {
                netdev_err(wlandev->netdev,
                           "setconfig(SCANREQUEST) failed. result=%d\n",