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

Commit c3132dbc authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "usb: phy: check for NULL before calling set_params"

parents 60d9960c 8925c2e2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -196,7 +196,7 @@ usb_phy_vbus_off(struct usb_phy *x)
static inline int
usb_phy_set_params(struct usb_phy *x)
{
	if (x->set_params)
	if (x && x->set_params)
		return x->set_params(x);

	return 0;