Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 601d6f03 authored by Vandana BN's avatar Vandana BN Committed by Greg Kroah-Hartman
Browse files

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: default avatarVandana BN <bnvandana@gmail.com>
------
 v2- Edited commit message and subject
 v3- Edited commit message
 v4- changed NULL check to use !pbuf
------

Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent a6d67827
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1425,9 +1425,8 @@ int proc_get_btcoex_info(struct seq_file *m, void *v)
	padapter = (struct adapter *)rtw_netdev_priv(dev);

	pbuf = rtw_zmalloc(bufsize);
	if (NULL == pbuf) {
	if (!pbuf)
		return -ENOMEM;
	}

	rtw_btcoex_DisplayBtCoexInfo(padapter, pbuf, bufsize);