]> git.baikalelectronics.ru Git - kernel.git/commit
can: peak_usb: use ARRAY_SIZE instead of NULL termination for peak_usb_adapters_list
authorMarc Kleine-Budde <mkl@pengutronix.de>
Tue, 27 Jan 2015 15:58:17 +0000 (16:58 +0100)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Wed, 28 Jan 2015 13:47:05 +0000 (14:47 +0100)
commit74e8e6f91cb7bce55da416ce4bbcf38ce2bea323
tree8bd7fa74f023a7a0429b422a4034b470347285d8
parent161ccf27af8a225e29c6e77701ff1cc9b679f9e4
can: peak_usb: use ARRAY_SIZE instead of NULL termination for peak_usb_adapters_list

This patch converts the list "static struct peak_usb_adapter
*peak_usb_adapters_list[]" to be used with ARRAY_SIZE not with a NULL
termination, as the size is known during compile time.

Acked-by: Stephane Grosjean <s.grosjean@peak-system.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/usb/peak_usb/pcan_usb_core.c