summaryrefslogtreecommitdiffstats
path: root/drivers/usb/dwc3
diff options
context:
space:
mode:
authorKushagra Verma <kushagra765@outlook.com>2022-05-02 14:37:14 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-05-05 21:57:32 +0200
commit4ea150889ad70dfae540e761c485b28bd1009486 (patch)
tree71350fe08e947d703feea7f0194712622ce50c79 /drivers/usb/dwc3
parent7fd069d65da2e20b1caec3b7bcf9dfbe28c04bb2 (diff)
downloadlinux-stable-4ea150889ad70dfae540e761c485b28bd1009486.tar.gz
linux-stable-4ea150889ad70dfae540e761c485b28bd1009486.tar.bz2
linux-stable-4ea150889ad70dfae540e761c485b28bd1009486.zip
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 <kushagra765@outlook.com> Link: https://lore.kernel.org/r/SI2PR01MB392926A7AFB821410770D7CFF8C19@SI2PR01MB3929.apcprd01.prod.exchangelabs.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/dwc3')
-rw-r--r--drivers/usb/dwc3/core.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c
index 2345a54b848b..7d023130e145 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,