Skip to content

Commit

Permalink
staging/rtl8187se: Use netdev_ printks in ieee80211/ieee80211_module.c
Browse files Browse the repository at this point in the history
The following warning fixed.
- WARNING: Prefer netdev_warn(netdev, ... then dev_warn(dev, ... then pr_warn(...  to printk(KERN_WARNING ...

Signed-off-by: YAMANE Toshiaki <yamanetoshi@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
YAMANE Toshiaki authored and Greg Kroah-Hartman committed Nov 21, 2012
1 parent 39550d2 commit 3c304fe
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/staging/rtl8187se/ieee80211/ieee80211_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,7 @@ static inline int ieee80211_networks_allocate(struct ieee80211_device *ieee)
MAX_NETWORK_COUNT, sizeof(struct ieee80211_network),
GFP_KERNEL);
if (!ieee->networks) {
printk(KERN_WARNING "%s: Out of memory allocating beacons\n",
ieee->dev->name);
netdev_warn(ieee->dev, "Out of memory allocating beacons\n");
return -ENOMEM;
}

Expand Down

0 comments on commit 3c304fe

Please sign in to comment.