projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a567d0d
)
staging: wlan-ng: Replace data type declaration with variable of same type in p80211c...
author
Sergio Paracuellos
<
[email protected]
>
Mon, 10 Oct 2016 14:02:20 +0000
(16:02 +0200)
committer
Greg Kroah-Hartman
<
[email protected]
>
Sun, 16 Oct 2016 08:26:22 +0000
(10:26 +0200)
sizeof(*var) instead of sizeof(struct XXX) is preferred.
Fix it in p80211conv.c file.
Signed-off-by: Sergio Paracuellos <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/staging/wlan-ng/p80211conv.c
patch
|
blob
|
history
diff --git
a/drivers/staging/wlan-ng/p80211conv.c
b/drivers/staging/wlan-ng/p80211conv.c
index 5c0e65863205473dc8950c352d8b6d08aa052c77..5080d42245bb8a726308054244c43cd37dbfac6c 100644
(file)
--- a/
drivers/staging/wlan-ng/p80211conv.c
+++ b/
drivers/staging/wlan-ng/p80211conv.c
@@
-615,7
+615,7
@@
int p80211skb_rxmeta_attach(struct wlandevice *wlandev, struct sk_buff *skb)
}
/* Allocate the rxmeta */
- rxmeta = kzalloc(sizeof(
struct p80211_
rxmeta), GFP_ATOMIC);
+ rxmeta = kzalloc(sizeof(
*
rxmeta), GFP_ATOMIC);
if (!rxmeta) {
netdev_err(wlandev->netdev,