mirror of https://gitee.com/openkylin/linux.git
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…
Reference in New Issue