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

Commit ed392554 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

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

parents bb857e37 00b09723
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] != NULL) {
		ret = kstrtoint(usb_pid_string, 16, &val);
		if (ret)
			return ret;