mirror of
https://github.com/torvalds/linux.git
synced 2026-05-12 16:18:45 +02:00
serial: lantiq: Remove unnecessary print function dev_err()
Function dev_err() is redundant because platform_get_irq() already prints an error. Signed-off-by: Chen Ni <nichen@iscas.ac.cn> Acked-by: Mukesh Kumar Savaliya <quic_msavaliy@quicinc.com> Link: https://lore.kernel.org/r/20250401080337.2187400-1-nichen@iscas.ac.cn Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
753a55f559
commit
a0003b9d79
|
|
@ -773,10 +773,8 @@ static int fetch_irq_intel(struct device *dev, struct ltq_uart_port *ltq_port)
|
|||
int ret;
|
||||
|
||||
ret = platform_get_irq(to_platform_device(dev), 0);
|
||||
if (ret < 0) {
|
||||
dev_err(dev, "failed to fetch IRQ for serial port\n");
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
}
|
||||
ltq_port->common_irq = ret;
|
||||
port->irq = ret;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user