mirror of https://gitee.com/openkylin/linux.git
staging: rtl8188eu: remove dead code in rtw_drv_init()
(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>
This commit is contained in:
parent
9eb6f16dfe
commit
b8f6ad0860
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue