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 86f0ab9..ed9c6a1 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);