staging: rtl8188eu: remove dead code in rtw_drv_init()
authorChristian Engelmayer <cengelma@gmx.at>
Sat, 17 May 2014 10:38:58 +0000 (12:38 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 May 2014 16:46:38 +0000 (01:46 +0900)
(status != _SUCCESS) immediately after 'status = _SUCCESS' will never evaluate
true. Thus remove the logically dead code. Detected by Coverity - CID 1077553.

Signed-off-by: Christian Engelmayer <cengelma@gmx.at>
Acked-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/os_dep/usb_intf.c

index 86f0ab9ef727c377ef7a97bca194932e62219751..ed9c6a11275997928709200ae5bb513c97301768 100644 (file)
@@ -714,8 +714,6 @@ static int rtw_drv_init(struct usb_interface *pusb_intf, const struct usb_device
 
        status = _SUCCESS;
 
-       if (status != _SUCCESS && if1)
-               rtw_usb_if1_deinit(if1);
 free_dvobj:
        if (status != _SUCCESS)
                usb_dvobj_deinit(pusb_intf);