Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 28ed2075 authored by Markus Elfring's avatar Markus Elfring Committed by Greg Kroah-Hartman
Browse files

USB: whci-hcd: Delete an unnecessary check before the function call "usb_put_hcd"



The usb_put_hcd() function tests whether its argument is NULL and then
returns immediately. Thus the test around the call is not needed.

This issue was detected by using the Coccinelle software.

Signed-off-by: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b29582b1
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -313,7 +313,6 @@ static int whc_probe(struct umc_dev *umc)
	uwb_rc_put(wusbhc->uwb_rc);
error:
	whc_clean_up(whc);
	if (usb_hcd)
	usb_put_hcd(usb_hcd);
	return ret;
}