Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1733732
| From | SF Markus Elfring <elfring@users.sourceforge.net> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 1/2] [media] dvb_usb_core: Delete two error messages for a failed memory allocation in dvb_usbv2_probe() |
| Date | 2017-09-18 10:20 +0200 |
| Message-ID | <uqZrA-3BU-13@gated-at.bofh.it> (permalink) |
| References | <uqZrA-3BU-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
From: Markus Elfring <elfring@users.sourceforge.net>
Date: Mon, 18 Sep 2017 09:25:19 +0200
Omit extra messages for a memory allocation failure in this function.
This issue was detected by using the Coccinelle software.
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
---
drivers/media/usb/dvb-usb-v2/dvb_usb_core.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/drivers/media/usb/dvb-usb-v2/dvb_usb_core.c b/drivers/media/usb/dvb-usb-v2/dvb_usb_core.c
index 096bb75a24e5..d0fbf0b0b1cb 100644
--- a/drivers/media/usb/dvb-usb-v2/dvb_usb_core.c
+++ b/drivers/media/usb/dvb-usb-v2/dvb_usb_core.c
@@ -923,5 +923,4 @@ int dvb_usbv2_probe(struct usb_interface *intf,
if (!d) {
- dev_err(&udev->dev, "%s: kzalloc() failed\n", KBUILD_MODNAME);
ret = -ENOMEM;
goto err;
}
@@ -946,6 +945,4 @@ int dvb_usbv2_probe(struct usb_interface *intf,
if (!d->priv) {
- dev_err(&d->udev->dev, "%s: kzalloc() failed\n",
- KBUILD_MODNAME);
ret = -ENOMEM;
goto err_free_all;
}
--
2.14.1
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 0/2] [media] dvb_usb_core: Adjustments for two function implementations SF Markus Elfring <elfring@users.sourceforge.net> - 2017-09-18 10:20 +0200 [PATCH 1/2] [media] dvb_usb_core: Delete two error messages for a failed memory allocation in dvb_usbv2_probe() SF Markus Elfring <elfring@users.sourceforge.net> - 2017-09-18 10:20 +0200 [PATCH 2/2] [media] dvb_usb_core: Improve a size determination in two functions SF Markus Elfring <elfring@users.sourceforge.net> - 2017-09-18 10:20 +0200
csiph-web