The site-specific OOM messages are unnecessary, because they
duplicate the MM subsystem generic OOM message.

Signed-off-by: Jingoo Han <[email protected]>
---
 drivers/gpio/gpio-rc5t583.c |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/gpio/gpio-rc5t583.c b/drivers/gpio/gpio-rc5t583.c
index 9b42317..562b0c4 100644
--- a/drivers/gpio/gpio-rc5t583.c
+++ b/drivers/gpio/gpio-rc5t583.c
@@ -119,10 +119,8 @@ static int rc5t583_gpio_probe(struct platform_device *pdev)
 
        rc5t583_gpio = devm_kzalloc(&pdev->dev, sizeof(*rc5t583_gpio),
                                        GFP_KERNEL);
-       if (!rc5t583_gpio) {
-               dev_warn(&pdev->dev, "Mem allocation for rc5t583_gpio failed");
+       if (!rc5t583_gpio)
                return -ENOMEM;
-       }
 
        rc5t583_gpio->gpio_chip.label = "gpio-rc5t583",
        rc5t583_gpio->gpio_chip.owner = THIS_MODULE,
-- 
1.7.10.4


--
To unsubscribe from this list: send the line "unsubscribe linux-gpio" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to