summaryrefslogtreecommitdiff
path: root/drivers/spi/spi-adi-v3.c
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@samsung.com>2014-06-13 08:47:41 +0400
committerMark Brown <broonie@linaro.org>2014-06-21 14:14:02 +0400
commit1380caa0c03a0db6eed21a84df9224ce3b45ea56 (patch)
tree8643b26327b242e4e73322466099e4d6d32838d7 /drivers/spi/spi-adi-v3.c
parent7171511eaec5bf23fb06078f59784a3a0626b38f (diff)
downloadlinux-1380caa0c03a0db6eed21a84df9224ce3b45ea56.tar.xz
spi: spi-adi-v3: Remove redundant OOM message
Let memory subsystem do the error logging. Signed-off-by: Sachin Kamat <sachin.kamat@samsung.com> Reviewed-by: Naveen Krishna Chatradhi <ch.naveen@samsung.com> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'drivers/spi/spi-adi-v3.c')
-rw-r--r--drivers/spi/spi-adi-v3.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/spi/spi-adi-v3.c b/drivers/spi/spi-adi-v3.c
index dcb2287c7f8a..19ea8fb78cc7 100644
--- a/drivers/spi/spi-adi-v3.c
+++ b/drivers/spi/spi-adi-v3.c
@@ -660,10 +660,9 @@ static int adi_spi_setup(struct spi_device *spi)
struct adi_spi3_chip *chip_info = spi->controller_data;
chip = kzalloc(sizeof(*chip), GFP_KERNEL);
- if (!chip) {
- dev_err(&spi->dev, "can not allocate chip data\n");
+ if (!chip)
return -ENOMEM;
- }
+
if (chip_info) {
if (chip_info->control & ~ctl_reg) {
dev_err(&spi->dev,