projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
mmc: sdhci-of-arasan: add sdhci_arasan_voltage_switch for arasan,5.1
[firefly-linux-kernel-4.4.55.git]
/
drivers
/
watchdog
/
pcwd_usb.c
diff --git
a/drivers/watchdog/pcwd_usb.c
b/drivers/watchdog/pcwd_usb.c
index e562e04760161003f75e2cbd19a443d9dbd251f5..1a11aedc4fe850738bfe17d469232da64959b84d 100644
(file)
--- a/
drivers/watchdog/pcwd_usb.c
+++ b/
drivers/watchdog/pcwd_usb.c
@@
-645,10
+645,8
@@
static int usb_pcwd_probe(struct usb_interface *interface,
/* allocate memory for our device and initialize it */
usb_pcwd = kzalloc(sizeof(struct usb_pcwd_private), GFP_KERNEL);
- if (usb_pcwd == NULL) {
- pr_err("Out of memory\n");
+ if (usb_pcwd == NULL)
goto error;
- }
usb_pcwd_device = usb_pcwd;