diff options
author | Jingoo Han <jg1.han@samsung.com> | 2014-07-16 23:45:11 -0400 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2014-08-20 13:14:45 -0400 |
commit | 734d5a5393ed8eedf70f13c7078cb4a6134f49f2 (patch) | |
tree | 3f29e6582a614aa61aaa8622bc7726a387b26760 /drivers/usb/dwc3/core.c | |
parent | 7d1311b93e58ed55f3a31cc8f94c4b8fe988a2b9 (diff) |
usb: dwc3: remove unnecessary OOM messages
The site-specific OOM messages are unnecessary, because they
duplicate the MM subsystem generic OOM message.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/dwc3/core.c')
-rw-r--r-- | drivers/usb/dwc3/core.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c index b769c1faaf03..f2050e844b4b 100644 --- a/drivers/usb/dwc3/core.c +++ b/drivers/usb/dwc3/core.c | |||
@@ -186,10 +186,8 @@ static int dwc3_alloc_event_buffers(struct dwc3 *dwc, unsigned length) | |||
186 | 186 | ||
187 | dwc->ev_buffs = devm_kzalloc(dwc->dev, sizeof(*dwc->ev_buffs) * num, | 187 | dwc->ev_buffs = devm_kzalloc(dwc->dev, sizeof(*dwc->ev_buffs) * num, |
188 | GFP_KERNEL); | 188 | GFP_KERNEL); |
189 | if (!dwc->ev_buffs) { | 189 | if (!dwc->ev_buffs) |
190 | dev_err(dwc->dev, "can't allocate event buffers array\n"); | ||
191 | return -ENOMEM; | 190 | return -ENOMEM; |
192 | } | ||
193 | 191 | ||
194 | for (i = 0; i < num; i++) { | 192 | for (i = 0; i < num; i++) { |
195 | struct dwc3_event_buffer *evt; | 193 | struct dwc3_event_buffer *evt; |
@@ -639,10 +637,9 @@ static int dwc3_probe(struct platform_device *pdev) | |||
639 | void *mem; | 637 | void *mem; |
640 | 638 | ||
641 | mem = devm_kzalloc(dev, sizeof(*dwc) + DWC3_ALIGN_MASK, GFP_KERNEL); | 639 | mem = devm_kzalloc(dev, sizeof(*dwc) + DWC3_ALIGN_MASK, GFP_KERNEL); |
642 | if (!mem) { | 640 | if (!mem) |
643 | dev_err(dev, "not enough memory\n"); | ||
644 | return -ENOMEM; | 641 | return -ENOMEM; |
645 | } | 642 | |
646 | dwc = PTR_ALIGN(mem, DWC3_ALIGN_MASK + 1); | 643 | dwc = PTR_ALIGN(mem, DWC3_ALIGN_MASK + 1); |
647 | dwc->mem = mem; | 644 | dwc->mem = mem; |
648 | dwc->dev = dev; | 645 | dwc->dev = dev; |