summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBjorn Helgaas <bjorn.helgaas@hp.com>2006-08-15 09:05:38 +0200
committerDavid S. Miller <davem@sunset.davemloft.net>2006-09-22 23:54:45 +0200
commit9c3bd6833a4df1abd9ecd3b51492b8949bf9cd11 (patch)
tree6835d90852cd40289ad970b979b694ed55203e60 /lib
parent[SELINUX]: security/selinux/hooks.c: Make 4 functions static. (diff)
downloadlinux-9c3bd6833a4df1abd9ecd3b51492b8949bf9cd11.tar.xz
linux-9c3bd6833a4df1abd9ecd3b51492b8949bf9cd11.zip
[IRDA]: Replace hard-coded dev_self[] array sizes with ARRAY_SIZE()
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>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions