Commit 6f710907 authored by Johan Meiring's avatar Johan Meiring Committed by Greg Kroah-Hartman

Staging: wlan-ng: fixed coding style issues in p80211netdev.c

This is a patch to the p80211netdev.c file that fixes warnings that were
found by the checkpatch.pl tool
Signed-off-by: default avatarJohan Meiring <johanmeiring@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 869c4b4a
...@@ -301,7 +301,8 @@ static void p80211netdev_rx_bh(unsigned long arg) ...@@ -301,7 +301,8 @@ static void p80211netdev_rx_bh(unsigned long arg)
if (memcmp if (memcmp
(hdr->a1, wlandev->netdev->dev_addr, (hdr->a1, wlandev->netdev->dev_addr,
ETH_ALEN) != 0) { ETH_ALEN) != 0) {
/* but reject anything else that isn't multicast */ /* but reject anything else that
isn't multicast */
if (!(hdr->a1[0] & 0x01)) { if (!(hdr->a1[0] & 0x01)) {
dev_kfree_skb(skb); dev_kfree_skb(skb);
continue; continue;
...@@ -770,7 +771,8 @@ int wlan_setup(wlandevice_t *wlandev, struct device *physdev) ...@@ -770,7 +771,8 @@ int wlan_setup(wlandevice_t *wlandev, struct device *physdev)
} }
/* Allocate and initialize the struct device */ /* Allocate and initialize the struct device */
netdev = alloc_netdev(sizeof(struct wireless_dev), "wlan%d", ether_setup); netdev = alloc_netdev(sizeof(struct wireless_dev), "wlan%d",
ether_setup);
if (netdev == NULL) { if (netdev == NULL) {
printk(KERN_ERR "Failed to alloc netdev.\n"); printk(KERN_ERR "Failed to alloc netdev.\n");
wlan_free_wiphy(wiphy); wlan_free_wiphy(wiphy);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment