mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-13 09:20:17 +00:00
Staging: wlan-ng: Do not print message if kzalloc() failed.
Do not print message if kzalloc() failed. kzalloc() has its own messages. So no need to add extra one. Signed-off-by: Sandhya Bankar <bankarsandhya512@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
c631cb07b4
commit
9512349356
@ -1886,7 +1886,6 @@ static wlandevice_t *create_wlan(void)
|
||||
hw = kzalloc(sizeof(hfa384x_t), GFP_KERNEL);
|
||||
|
||||
if (!wlandev || !hw) {
|
||||
pr_err("%s: Memory allocation failure.\n", dev_info);
|
||||
kfree(wlandev);
|
||||
kfree(hw);
|
||||
return NULL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user