[IRDA]: Replace hard-coded dev_self[] array sizes with ARRAY_SIZE()
authorBjorn Helgaas <bjorn.helgaas@hp.com>
Tue, 15 Aug 2006 07:05:38 +0000 (00:05 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Fri, 22 Sep 2006 21:54:45 +0000 (14:54 -0700)
Several IR drivers used "for (i = 0; i < 4; i++)" to walk their
dev_self[] table.  Better to use ARRAY_SIZE().  And fix ali-ircc so it
won't run off the end if we find too many adapters.

Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found