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

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

Merge "USB: gadget: qti: Fix NULL check for usb_pid_string"

parents c6faf952 618b7975
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -497,7 +497,7 @@ static int qti_gadget_get_properties(struct qti_usb_gadget *gadget)
		gadget->cdev.desc.bDeviceProtocol = (u8)val;

	/* Check if pid passed via cmdline which takes precedence */
	if (usb_pid_string != NULL) {
	if (usb_pid_string[0] != 0) {
		ret = kstrtoint(usb_pid_string, 16, &val);
		if (ret)
			return ret;