]> git.baikalelectronics.ru Git - kernel.git/commit
drivers/ide/legacy/hd.c: Array size calculation using sizeof replaced with ARRAY_SIZE
authorAndi Drebes <lists-receive@programmierforen.de>
Mon, 9 Jul 2007 21:17:57 +0000 (23:17 +0200)
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Mon, 9 Jul 2007 21:17:57 +0000 (23:17 +0200)
commita7f38067b2bfd006b7a51077a0ba3c7dc532ae8a
tree36b9bcaad34e0865aedbc4f44ae3536891b91a26
parentecab1c9ec0285d8f0daac8de10e36c2036f02c3e
drivers/ide/legacy/hd.c: Array size calculation using sizeof replaced with ARRAY_SIZE

This patch replaces an array size calculation in drivers/ide/legacy/hd.c
that was done using sizeof with the ARRAY_SIZE macro.

Tested by compilation on an i386 box using "allyesconfig".
Diffed against Linus' git-tree.

Signed-off-by: Andi Drebes <lists-receive@programmierforen.de>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
drivers/ide/legacy/hd.c