Commit 4ea15088 authored by Kushagra Verma's avatar Kushagra Verma Committed by Greg Kroah-Hartman
Browse files

usb: dwc3: remove a possible unnecessary 'out of memory' message



This patch removes a possible unnecessary out of memory message from
core.c as reported by checkpatch.pl:
   WARNING: Possible unnecessary 'out of memory' message

Signed-off-by: default avatarKushagra Verma <kushagra765@outlook.com>
Link: https://lore.kernel.org/r/SI2PR01MB392926A7AFB821410770D7CFF8C19@SI2PR01MB3929.apcprd01.prod.exchangelabs.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 7fd069d6
Loading
Loading
Loading
Loading
+1 −3
Original line number Original line Diff line number Diff line
@@ -964,10 +964,8 @@ static void dwc3_set_incr_burst_type(struct dwc3 *dwc)
		return;
		return;


	vals = kcalloc(ntype, sizeof(u32), GFP_KERNEL);
	vals = kcalloc(ntype, sizeof(u32), GFP_KERNEL);
	if (!vals) {
	if (!vals)
		dev_err(dev, "Error to get memory\n");
		return;
		return;
	}


	/* Get INCR burst type, and parse it */
	/* Get INCR burst type, and parse it */
	ret = device_property_read_u32_array(dev,
	ret = device_property_read_u32_array(dev,