mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-11-30 07:29:42 -05:00
gpio: adp5588: 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 <[email protected]> Reviewed-by: Javier Martinez Canillas <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
This commit is contained in:
parent
e8a71aaa88
commit
1a25908d79
1 changed files with 1 additions and 3 deletions
|
|
@ -379,10 +379,8 @@ static int adp5588_gpio_probe(struct i2c_client *client,
|
|||
}
|
||||
|
||||
dev = kzalloc(sizeof(*dev), GFP_KERNEL);
|
||||
if (dev == NULL) {
|
||||
dev_err(&client->dev, "failed to alloc memory\n");
|
||||
if (dev == NULL)
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
dev->client = client;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue