Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mfd: aat2870-core: Remove unnecessary 'out of memory' message

WARNING: Possible unnecessary 'out of memory' message
+ if (!aat2870) {
+ dev_err(&client->dev,

total: 0 errors, 1 warnings, 524 lines checked

Signed-off-by: Lee Jones <lee.jones@linaro.org>

Lee Jones 4374b20c f90dff44

+1 -4
+1 -4
drivers/mfd/aat2870-core.c
··· 373 373 374 374 aat2870 = devm_kzalloc(&client->dev, sizeof(struct aat2870_data), 375 375 GFP_KERNEL); 376 - if (!aat2870) { 377 - dev_err(&client->dev, 378 - "Failed to allocate memory for aat2870\n"); 376 + if (!aat2870) 379 377 return -ENOMEM; 380 - } 381 378 382 379 aat2870->dev = &client->dev; 383 380 dev_set_drvdata(aat2870->dev, aat2870);