From: Sergio Paracuellos Date: Wed, 19 Oct 2016 15:51:30 +0000 (+0200) Subject: staging: wlan-ng: Replace data type declaration with variable of same type in prism2m... X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e0e6964805c6427f2c07b5a52820c0163de74010;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git staging: wlan-ng: Replace data type declaration with variable of same type in prism2mgmt.c 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/wlan-ng/prism2mgmt.c b/drivers/staging/wlan-ng/prism2mgmt.c index f63704a54073..16fb2d3e0f51 100644 --- a/drivers/staging/wlan-ng/prism2mgmt.c +++ b/drivers/staging/wlan-ng/prism2mgmt.c @@ -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",