mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 11:19:37 +00:00
Staging: rtl8188eu: usb_halinit: Use !x instead of x == NULL.
Use !x instead of x == NULL. Signed-off-by: Sandhya Bankar <bankarsandhya512@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
eec1c50002
commit
f3e80d80e9
1 changed files with 1 additions and 1 deletions
|
@ -2078,7 +2078,7 @@ void rtl8188eu_set_hal_ops(struct adapter *adapt)
|
|||
|
||||
|
||||
adapt->HalData = kzalloc(sizeof(struct hal_data_8188e), GFP_KERNEL);
|
||||
if (adapt->HalData == NULL)
|
||||
if (!adapt->HalData)
|
||||
DBG_88E("cant not alloc memory for HAL DATA\n");
|
||||
|
||||
halfunc->hal_power_on = rtl8188eu_InitPowerOn;
|
||||
|
|
Loading…
Reference in a new issue