From: Larry Finger Date: Sat, 3 Mar 2012 03:06:49 +0000 (-0600) Subject: staging: r8712u: Fix Smatch warning X-Git-Tag: v3.4-rc1~186^2~67 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ee6aeff71e2f16b9fe95ce908d098c169e0f4004;p=pandora-kernel.git staging: r8712u: Fix Smatch warning The patch 2080913e017a: "staging: r8712u: Fix regression caused by commit 8c213fa" from Feb 25, 2012, leads to the following Smatch complaint: drivers/staging/rtl8712/usb_intf.c:629 r871xu_dev_remove() warn: variable dereferenced before check 'padapter' (see line 625) The fix is to move the new statements inside the block where padapter is not NULL. Reported-by: Dan Carpenter Signed-off-by: Larry Finger Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed