diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2011-07-04 00:53:13 +0200 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2011-07-04 00:53:13 +0200 |
commit | e2f521e247576c897e1bf0ada801e87c7e2db89f (patch) | |
tree | 40a26d917bc863b94cf5711c1b5f95da29f323fa /arch/arm/common/dmabounce.c | |
parent | ARM: dmabounce: move decision for bouncing into __dma_map_page() (diff) | |
download | linux-e2f521e247576c897e1bf0ada801e87c7e2db89f.tar.xz linux-e2f521e247576c897e1bf0ada801e87c7e2db89f.zip |
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/dmabounce.c')
-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, 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); |