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:
Родитель
c631cb07b4
Коммит
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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче