staging: r8188eu: Calling rtw_get_stainfo() with a NULL sta_addr will return NULL
authorLarry Finger <Larry.Finger@lwfinger.net>
Wed, 9 Apr 2014 16:12:58 +0000 (11:12 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 6 May 2014 14:59:26 +0000 (07:59 -0700)
commit7f37f259e30d6230e06d43363b2cbbd9658f0f59
tree0214832c94074e4eb86b3f2476b7f6cbbe91a16a
parent6500aa1097fae4de3407ef0033d25d4f85233c25
staging: r8188eu: Calling rtw_get_stainfo() with a NULL sta_addr will return NULL

commit 9452bf560273e4de2395ffdd79024debfb0c1290 upstream.

This makes the follow-on check for psta != NULL pointless and makes
the whole exercise rather pointless. This is another case of why
blindly zero-initializing variables when they are declared is bad.

Reported-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/core/rtw_recv.c