rtc: rtc-ds1390: remove unnecessary OOM messages
authorJingoo Han <jg1.han@samsung.com>
Thu, 3 Apr 2014 21:49:40 +0000 (14:49 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 3 Apr 2014 23:21:17 +0000 (16:21 -0700)
The site-specific OOM messages are unnecessary, because they duplicate
the MM subsystem generic OOM message.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/rtc/rtc-ds1390.c

index be9d8c0a7e3a9297f093522087a04c1d82d2d335..e67bfcb3a1aa227a3d4fe1b25bef269dc990240c 100644 (file)
@@ -132,10 +132,9 @@ static int ds1390_probe(struct spi_device *spi)
        spi_setup(spi);
 
        chip = devm_kzalloc(&spi->dev, sizeof(*chip), GFP_KERNEL);
-       if (!chip) {
-               dev_err(&spi->dev, "unable to allocate device memory\n");
+       if (!chip)
                return -ENOMEM;
-       }
+
        spi_set_drvdata(spi, chip);
 
        res = ds1390_get_reg(&spi->dev, DS1390_REG_SECONDS, &tmp);