* [PATCH] serial: lantiq: Remove unnecessary print function dev_err()
@ 2025-04-01 8:03 Chen Ni
2025-04-01 8:50 ` Mukesh Kumar Savaliya
0 siblings, 1 reply; 2+ messages in thread
From: Chen Ni @ 2025-04-01 8:03 UTC (permalink / raw)
To: gregkh, jirislaby, u.kleine-koenig; +Cc: linux-kernel, linux-serial, Chen Ni
Function dev_err() is redundant because platform_get_irq()
already prints an error.
Signed-off-by: Chen Ni <nichen@iscas.ac.cn>
---
drivers/tty/serial/lantiq.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/tty/serial/lantiq.c b/drivers/tty/serial/lantiq.c
index 58a3ab030d67..62cd9e0bb377 100644
--- a/drivers/tty/serial/lantiq.c
+++ b/drivers/tty/serial/lantiq.c
@@ -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;
--
2.25.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] serial: lantiq: Remove unnecessary print function dev_err()
2025-04-01 8:03 [PATCH] serial: lantiq: Remove unnecessary print function dev_err() Chen Ni
@ 2025-04-01 8:50 ` Mukesh Kumar Savaliya
0 siblings, 0 replies; 2+ messages in thread
From: Mukesh Kumar Savaliya @ 2025-04-01 8:50 UTC (permalink / raw)
To: Chen Ni, gregkh, jirislaby, u.kleine-koenig; +Cc: linux-kernel, linux-serial
On 4/1/2025 1:33 PM, Chen Ni wrote:
> 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>
> ---
> drivers/tty/serial/lantiq.c | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/drivers/tty/serial/lantiq.c b/drivers/tty/serial/lantiq.c
> index 58a3ab030d67..62cd9e0bb377 100644
> --- a/drivers/tty/serial/lantiq.c
> +++ b/drivers/tty/serial/lantiq.c
> @@ -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;
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-04-01 8:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-04-01 8:03 [PATCH] serial: lantiq: Remove unnecessary print function dev_err() Chen Ni
2025-04-01 8:50 ` Mukesh Kumar Savaliya
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®