diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2011-07-03 18:53:13 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2011-07-03 18:53:13 -0400 |
commit | e2f521e247576c897e1bf0ada801e87c7e2db89f (patch) | |
tree | 40a26d917bc863b94cf5711c1b5f95da29f323fa /arch/arm/common | |
parent | dd3641fc3cf6d10b7cf4e266c2f651517779e727 (diff) |
ARM: dmabounce: remove useless pr_err
We already check that dev != NULL, so this won't be reached.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/common')
-rw-r--r-- | arch/arm/common/dmabounce.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/arm/common/dmabounce.c b/arch/arm/common/dmabounce.c index 6ae292cc43bf..0077c1b7d7ff 100644 --- 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, | |||
210 | if (!dev || !dev->archdata.dmabounce) | 210 | if (!dev || !dev->archdata.dmabounce) |
211 | return NULL; | 211 | return NULL; |
212 | if (dma_mapping_error(dev, dma_addr)) { | 212 | if (dma_mapping_error(dev, dma_addr)) { |
213 | if (dev) | 213 | dev_err(dev, "Trying to %s invalid mapping\n", where); |
214 | dev_err(dev, "Trying to %s invalid mapping\n", where); | ||
215 | else | ||
216 | pr_err("unknown device: Trying to %s invalid mapping\n", where); | ||
217 | return NULL; | 214 | return NULL; |
218 | } | 215 | } |
219 | return find_safe_buffer(dev->archdata.dmabounce, dma_addr); | 216 | return find_safe_buffer(dev->archdata.dmabounce, dma_addr); |