Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1724142
| From | Janani Sankara Babu <jananis37@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH] staging:rtl8188eu Fix comparison to NULL |
| Date | 2017-08-31 14:00 +0200 |
| Message-ID | <ukwiD-5bl-39@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
This patch replaces the comparison of variable say x to NULL with '!x'
signed-off-by: Janani Sankara Babu <jananis37@gmail.com>
---
drivers/staging/rtl8188eu/core/rtw_mlme.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/rtl8188eu/core/rtw_mlme.c b/drivers/staging/rtl8188eu/core/rtw_mlme.c
index 8480d30..ce179c6 100644
--- a/drivers/staging/rtl8188eu/core/rtw_mlme.c
+++ b/drivers/staging/rtl8188eu/core/rtw_mlme.c
@@ -1502,7 +1502,7 @@ int rtw_select_and_join_from_scanned_queue(struct mlme_priv *pmlmepriv)
pmlmepriv->pscanned = phead->next;
while (phead != pmlmepriv->pscanned) {
pnetwork = container_of(pmlmepriv->pscanned, struct wlan_network, list);
- if (pnetwork == NULL) {
+ if (!pnetwork) {
RT_TRACE(_module_rtl871x_mlme_c_, _drv_err_, ("%s return _FAIL:(pnetwork==NULL)\n", __func__));
ret = _FAIL;
goto exit;
--
1.9.1
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[PATCH] staging:rtl8188eu Fix comparison to NULL Janani Sankara Babu <jananis37@gmail.com> - 2017-08-31 14:00 +0200
csiph-web