mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-30 06:10:56 +00:00
mfd: jz4740-adc: Delete error message for a failed memory allocation
Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring <elfring@users.sourceforge.net> Signed-off-by: Lee Jones <lee.jones@linaro.org>
This commit is contained in:
parent
292155bee1
commit
17963b5445
1 changed files with 1 additions and 3 deletions
|
@ -212,10 +212,8 @@ static int jz4740_adc_probe(struct platform_device *pdev)
|
|||
int irq_base;
|
||||
|
||||
adc = devm_kzalloc(&pdev->dev, sizeof(*adc), GFP_KERNEL);
|
||||
if (!adc) {
|
||||
dev_err(&pdev->dev, "Failed to allocate driver structure\n");
|
||||
if (!adc)
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
adc->irq = platform_get_irq(pdev, 0);
|
||||
if (adc->irq < 0) {
|
||||
|
|
Loading…
Reference in a new issue