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

Configure Feed

Select the types of activity you want to include in your feed.

regulator: drivers: Remove unnecessary print function dev_err()

The print function dev_err() is redundant because
platform_get_irq_byname() already prints an error.

Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=1986
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
Link: https://lore.kernel.org/r/20220825070438.128093-1-yang.lee@linux.alibaba.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Yang Li and committed by
Mark Brown
d46f7372 48aa4730

+2 -4
+2 -4
drivers/regulator/tps65219-regulator.c
··· 363 363 irq_type = &tps65219_regulator_irq_types[i]; 364 364 365 365 irq = platform_get_irq_byname(pdev, irq_type->irq_name); 366 - if (irq < 0) { 367 - dev_err(tps->dev, "Failed to get IRQ %s: %d\n", 368 - irq_type->irq_name, irq); 366 + if (irq < 0) 369 367 return -EINVAL; 370 - } 368 + 371 369 irq_data[i].dev = tps->dev; 372 370 irq_data[i].type = irq_type; 373 371