From: Larry Finger Date: Wed, 9 Apr 2014 16:12:58 +0000 (-0500) Subject: staging: r8188eu: Calling rtw_get_stainfo() with a NULL sta_addr will return NULL X-Git-Tag: omap-for-v3.16/pm-signed~80^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9452bf560273e4de2395ffdd79024debfb0c1290;p=pandora-kernel.git staging: r8188eu: Calling rtw_get_stainfo() with a NULL sta_addr will return NULL 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 Signed-off-by: Larry Finger Cc: Stable Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed