staging: r8712u: Remove needless test for NULL
authorLarry Finger <Larry.Finger@lwfinger.net>
Fri, 11 May 2012 16:33:43 +0000 (11:33 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 May 2012 20:27:24 +0000 (13:27 -0700)
commit1d73fad8335784fa53349ed2c5284c1339e3b103
tree739901eaed9dc9610362e5f51decf28541d82772
parent5d4172cd63bd7a70007ce9d4d1fb48953323c328
staging: r8712u: Remove needless test for NULL

In commit ee6aeff, a swatch warning was fixed by moving some code inside
an if block that is executed only when the pointer padapter is not NULL.
In fact, padapter can never be NULL and the corect fix should have been
the removal of the test of padapter.

Reported-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8712/usb_intf.c