staging: wlan-ng: Replace data type declaration with variable of same type in p80211conv.c
sizeof(*var) instead of sizeof(struct XXX) is preferred. Fix it in p80211conv.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
a567d0d47f
commit
229dbdc577
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue