summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorSergio Paracuellos <sergio.paracuellos@gmail.com>2016-10-10 16:02:20 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-10-16 10:26:22 +0200
commit229dbdc577cf6cf0f0589739b403aa5ef125f8e2 (patch)
tree628109a5bdee99fc54116aef16074b76c8a5fbb1 /drivers
parenta567d0d47ffb31d1f8d8c206db998043911fa256 (diff)
downloadlinux-229dbdc577cf6cf0f0589739b403aa5ef125f8e2.tar.gz
linux-229dbdc577cf6cf0f0589739b403aa5ef125f8e2.tar.bz2
linux-229dbdc577cf6cf0f0589739b403aa5ef125f8e2.zip
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/wlan-ng/p80211conv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/wlan-ng/p80211conv.c b/drivers/staging/wlan-ng/p80211conv.c
index 5c0e65863205..5080d42245bb 100644
--- 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,