summaryrefslogtreecommitdiff
path: root/drivers/net/can/usb/peak_usb/pcan_usb_pro.c
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2015-01-27 16:58:17 +0100
committerMarc Kleine-Budde <mkl@pengutronix.de>2015-01-28 14:47:05 +0100
commit0adfd7335b622ca3cac94810487db470f57892fc (patch)
tree8bd7fa74f023a7a0429b422a4034b470347285d8 /drivers/net/can/usb/peak_usb/pcan_usb_pro.c
parentf5d4abea3ce0747ba2b5061dbc99c6f3149c4ba4 (diff)
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>
Diffstat (limited to 'drivers/net/can/usb/peak_usb/pcan_usb_pro.c')
0 files changed, 0 insertions, 0 deletions