]> git.ipfire.org Git - thirdparty/hostap.git/commit - wpa_supplicant/ctrl_iface.c
Do not use a separate variable for tracking first entry in a list
authorJouni Malinen <j@w1.fi>
Sun, 2 Mar 2014 14:14:09 +0000 (16:14 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 2 Mar 2014 15:15:12 +0000 (17:15 +0200)
commitea3b8c1d2df1e768ebc67ae9236f13e1fb0b595f
treeb061c2b54055236e7fc78b241e8e5d4215de54b4
parent8a4ce28000d7f81ef2b8d66aa6748a54fe27f72a
Do not use a separate variable for tracking first entry in a list

The pos pointer can be compared to the start of the buffer pointer to
determine whether the entry is the first one in the list. This gets rid
of some static analyzer warnings about unused variable writes.

Signed-off-by: Jouni Malinen <j@w1.fi>
wpa_supplicant/ctrl_iface.c