From: Kushagra Verma Date: Mon, 2 May 2022 09:07:14 +0000 (+0530) Subject: usb: dwc3: remove a possible unnecessary 'out of memory' message X-Git-Tag: v6.1-rc5~1161^2~52 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4ea150889ad70dfae540e761c485b28bd1009486;p=platform%2Fkernel%2Flinux-starfive.git 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: Kushagra Verma Link: https://lore.kernel.org/r/SI2PR01MB392926A7AFB821410770D7CFF8C19@SI2PR01MB3929.apcprd01.prod.exchangelabs.com Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c index 2345a54..7d02313 100644 --- a/drivers/usb/dwc3/core.c +++ b/drivers/usb/dwc3/core.c @@ -964,10 +964,8 @@ static void dwc3_set_incr_burst_type(struct dwc3 *dwc) return; vals = kcalloc(ntype, sizeof(u32), GFP_KERNEL); - if (!vals) { - dev_err(dev, "Error to get memory\n"); + if (!vals) return; - } /* Get INCR burst type, and parse it */ ret = device_property_read_u32_array(dev,