mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-25 05:04:09 +08:00
gpio: adp5520: remove unnecessary OOM messages
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> Reviewed-by: Javier Martinez Canillas <javier@dowhile0.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
parent
9d5d96ef2c
commit
e8a71aaa88
@ -106,10 +106,8 @@ static int adp5520_gpio_probe(struct platform_device *pdev)
|
||||
}
|
||||
|
||||
dev = devm_kzalloc(&pdev->dev, sizeof(*dev), GFP_KERNEL);
|
||||
if (dev == NULL) {
|
||||
dev_err(&pdev->dev, "failed to alloc memory\n");
|
||||
if (dev == NULL)
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
dev->master = pdev->dev.parent;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user