From: bnvandana@gmail.com (Vandana BN) Date: Fri, 26 Apr 2019 23:10:25 +0530 Subject: [Linux-kernel-mentees] [PATCH v2] staging: rtl8723bs: Fix checkpatch.pl warnings In-Reply-To: <20190426131249.16198-1-bnvandana@gmail.com> References: <20190426131249.16198-1-bnvandana@gmail.com> Message-ID: <20190426174025.19901-1-bnvandana@gmail.com> List-Id: Content-Type: text/plain; charset="UTF-8" Message-ID: <20190426174025.QND-3a9Ggr97Y0KvNBL_Vn9YkrwOrMDYanlCpUd9qRE@z> fixed below warnings, Comparisons should place the constant on the right side of the test braces {} are not necessary for single statement blocks Signed-off-by: Vandana BN ------ v2- Edited commit message and subject ------ --- drivers/staging/rtl8723bs/core/rtw_debug.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_debug.c b/drivers/staging/rtl8723bs/core/rtw_debug.c index 0de1e12a676e..3fb09ad45a67 100644 --- a/drivers/staging/rtl8723bs/core/rtw_debug.c +++ b/drivers/staging/rtl8723bs/core/rtw_debug.c @@ -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 == NULL) return -ENOMEM; - } rtw_btcoex_DisplayBtCoexInfo(padapter, pbuf, bufsize); -- 2.17.1