mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
mfd: ab2100-otp: Remove pointless 'out of memory' error message
WARNING: Possible unnecessary 'out of memory' message
+ if (!otp) {
+ dev_err(&pdev->dev, "could not allocate AB3100 OTP device\n");
total: 0 errors, 1 warnings, 250 lines checked
Cc: Linus Walleij <[email protected]>
Signed-off-by: Lee Jones <[email protected]>
This commit is contained in:
parent
15544cab28
commit
845b76f891
1 changed files with 2 additions and 3 deletions
|
|
@ -188,10 +188,9 @@ static int __init ab3100_otp_probe(struct platform_device *pdev)
|
|||
int i;
|
||||
|
||||
otp = devm_kzalloc(&pdev->dev, sizeof(struct ab3100_otp), GFP_KERNEL);
|
||||
if (!otp) {
|
||||
dev_err(&pdev->dev, "could not allocate AB3100 OTP device\n");
|
||||
if (!otp)
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
otp->dev = &pdev->dev;
|
||||
|
||||
/* Replace platform data coming in with a local struct */
|
||||
|
|
|
|||
Loading…
Reference in a new issue