mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-04 18:09:57 +00:00
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 <sergio.paracuellos@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
ab42187a17
commit
e0e6964805
1 changed files with 1 additions and 1 deletions
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue