mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-29 23:53:32 +00:00
staging: wlan-ng: remove unnecessary 'out of memory' message
This patch fixes "Possible unnecessary 'out of memory' message" checkpatch.pl warning in hfa384x_usb.c Signed-off-by: Melike Yurtoglu <aysemelikeyurtoglu@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
7489df3695
commit
fb282bcd9c
1 changed files with 1 additions and 5 deletions
|
@ -3583,12 +3583,8 @@ static void hfa384x_int_rxmonitor(wlandevice_t *wlandev,
|
|||
}
|
||||
|
||||
skb = dev_alloc_skb(skblen);
|
||||
if (skb == NULL) {
|
||||
netdev_err(hw->wlandev->netdev,
|
||||
"alloc_skb failed trying to allocate %d bytes\n",
|
||||
skblen);
|
||||
if (skb == NULL)
|
||||
return;
|
||||
}
|
||||
|
||||
/* only prepend the prism header if in the right mode */
|
||||
if ((wlandev->netdev->type == ARPHRD_IEEE80211_PRISM) &&
|
||||
|
|
Loading…
Reference in a new issue