[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1476801467-25603-1-git-send-email-weiyj.lk@gmail.com>
Date: Tue, 18 Oct 2016 14:37:47 +0000
From: Wei Yongjun <weiyj.lk@...il.com>
To: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Mihaela Muraru <mihaela.muraru21@...il.com>,
Wolfram Sang <wsa+renesas@...g-engineering.com>,
Philipp Hoefflin <p.hoefflin@...teo.de>,
sayli karnik <karniksayli1995@...il.com>,
Colin Ian King <colin.king@...onical.com>
Cc: Wei Yongjun <weiyongjun1@...wei.com>, devel@...verdev.osuosl.org,
linux-kernel@...r.kernel.org
Subject: [PATCH -next] staging: ks7010: convert list_for_each to entry variant
From: Wei Yongjun <weiyongjun1@...wei.com>
convert list_for_each() to list_for_each_entry() where
applicable.
Signed-off-by: Wei Yongjun <weiyongjun1@...wei.com>
---
drivers/staging/ks7010/ks_hostif.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/staging/ks7010/ks_hostif.c b/drivers/staging/ks7010/ks_hostif.c
index 1f9f63e..42b53b2 100644
--- a/drivers/staging/ks7010/ks_hostif.c
+++ b/drivers/staging/ks7010/ks_hostif.c
@@ -2399,13 +2399,11 @@ void hostif_sme_set_pmksa(struct ks_wlan_private *priv)
} __packed list[PMK_LIST_MAX];
} __packed pmkcache;
struct pmk_t *pmk;
- struct list_head *ptr;
int i;
DPRINTK(4, "pmklist.size=%d\n", priv->pmklist.size);
i = 0;
- list_for_each(ptr, &priv->pmklist.head) {
- pmk = list_entry(ptr, struct pmk_t, list);
+ list_for_each_entry(pmk, &priv->pmklist.head, list) {
if (i < PMK_LIST_MAX) {
memcpy(pmkcache.list[i].bssid, pmk->bssid, ETH_ALEN);
memcpy(pmkcache.list[i].pmkid, pmk->pmkid,
Powered by blists - more mailing lists