hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/arch/sh/mm/consistent.c
....@@ -43,8 +43,7 @@
4343
4444 r = pdev->resource + pdev->num_resources - 1;
4545 if (r->flags) {
46
- pr_warning("%s: unable to find empty space for resource\n",
47
- name);
46
+ pr_warn("%s: unable to find empty space for resource\n", name);
4847 return -EINVAL;
4948 }
5049
....@@ -54,11 +53,9 @@
5453
5554 buf = dma_alloc_coherent(&pdev->dev, memsize, &dma_handle, GFP_KERNEL);
5655 if (!buf) {
57
- pr_warning("%s: unable to allocate memory\n", name);
56
+ pr_warn("%s: unable to allocate memory\n", name);
5857 return -ENOMEM;
5958 }
60
-
61
- memset(buf, 0, memsize);
6259
6360 r->flags = IORESOURCE_MEM;
6461 r->start = dma_handle;