projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dd3641f
)
ARM: dmabounce: remove useless pr_err
author
Russell King
<rmk+kernel@arm.linux.org.uk>
Sun, 3 Jul 2011 22:53:13 +0000
(23:53 +0100)
committer
Russell King
<rmk+kernel@arm.linux.org.uk>
Sun, 3 Jul 2011 22:53:13 +0000
(23:53 +0100)
We already check that dev != NULL, so this won't be reached.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/common/dmabounce.c
patch
|
blob
|
history
diff --git
a/arch/arm/common/dmabounce.c
b/arch/arm/common/dmabounce.c
index 6ae292cc43bf170d66f7a1ccfc0057549ae2023f..0077c1b7d7ffa13825fc2fe1ab674bbb816a2bcb 100644
(file)
--- a/
arch/arm/common/dmabounce.c
+++ b/
arch/arm/common/dmabounce.c
@@
-210,10
+210,7
@@
static struct safe_buffer *find_safe_buffer_dev(struct device *dev,
if (!dev || !dev->archdata.dmabounce)
return NULL;
if (dma_mapping_error(dev, dma_addr)) {
- if (dev)
- dev_err(dev, "Trying to %s invalid mapping\n", where);
- else
- pr_err("unknown device: Trying to %s invalid mapping\n", where);
+ dev_err(dev, "Trying to %s invalid mapping\n", where);
return NULL;
}
return find_safe_buffer(dev->archdata.dmabounce, dma_addr);