staging: rtl8723bs: Fix checkpatch.pl warnings

This patch resolves coding style brace warning and constant on right warning.
WARNING: Comparisons should place the constant on the right side of the test
WARNING: braces {} are not necessary for single statement blocks
CHECK: Comparison to NULL could be written "!pbuf"

Signed-off-by: Vandana BN <bnvandana@gmail.com>
------
 v2- Edited commit message and subject
 v3- Edited commit message
 v4- changed NULL check to use !pbuf
------

Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Vandana BN 2019-04-29 21:30:45 +05:30 committed by Greg Kroah-Hartman
parent a6d678274d
commit 601d6f0360
1 changed files with 1 additions and 2 deletions

View File

@ -1425,9 +1425,8 @@ int proc_get_btcoex_info(struct seq_file *m, void *v)
padapter = (struct adapter *)rtw_netdev_priv(dev); padapter = (struct adapter *)rtw_netdev_priv(dev);
pbuf = rtw_zmalloc(bufsize); pbuf = rtw_zmalloc(bufsize);
if (NULL == pbuf) { if (!pbuf)
return -ENOMEM; return -ENOMEM;
}
rtw_btcoex_DisplayBtCoexInfo(padapter, pbuf, bufsize); rtw_btcoex_DisplayBtCoexInfo(padapter, pbuf, bufsize);