mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [robh:for-kernelci 1/9] drivers/tty/serial/lantiq.c:732 fetch_irq_lantiq() warn: unsigned 'ltq_port->tx_irq' is never less than zero.
@ 2021-12-14 12:00 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-12-14 12:00 UTC (permalink / raw)
  To: Rob Herring; +Cc: kbuild-all, linux-kernel

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-kernelci
head:   0e59c9b64d3363b98201fc040101f8ff62c7eafb
commit: e12887def507246bafed1c9b1b7f4f03ab225da5 [1/9] serial: lantiq: Remove usage of of_irq_to_resource_table()/of_irq_get()
config: i386-randconfig-m021-20211210 (https://download.01.org/0day-ci/archive/20211214/202112141920.cCz4wG5n-lkp@intel.com/config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

smatch warnings:
drivers/tty/serial/lantiq.c:732 fetch_irq_lantiq() warn: unsigned 'ltq_port->tx_irq' is never less than zero.
drivers/tty/serial/lantiq.c:735 fetch_irq_lantiq() warn: unsigned 'ltq_port->rx_irq' is never less than zero.
drivers/tty/serial/lantiq.c:738 fetch_irq_lantiq() warn: unsigned 'ltq_port->err_irq' is never less than zero.

vim +732 drivers/tty/serial/lantiq.c

   725	
   726	static int fetch_irq_lantiq(struct device *dev, struct ltq_uart_port *ltq_port)
   727	{
   728		struct uart_port *port = &ltq_port->port;
   729		struct platform_device *pdev = to_platform_device(dev);
   730	
   731		ltq_port->tx_irq = platform_get_irq(pdev, 0);
 > 732		if (ltq_port->tx_irq < 0)
   733			return ltq_port->tx_irq;
   734		ltq_port->rx_irq = platform_get_irq(pdev, 1);
 > 735		if (ltq_port->rx_irq < 0)
   736			return ltq_port->rx_irq;
   737		ltq_port->err_irq = platform_get_irq(pdev, 2);
 > 738		if (ltq_port->err_irq < 0)
   739			return ltq_port->err_irq;
   740	
   741		port->irq = ltq_port->tx_irq;
   742	
   743		return 0;
   744	}
   745	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-12-14 12:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-14 12:00 [robh:for-kernelci 1/9] drivers/tty/serial/lantiq.c:732 fetch_irq_lantiq() warn: unsigned 'ltq_port->tx_irq' is never less than zero kernel test robot

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®