can: peak_canfd: fix uninitialized symbol warnings

This patch fixes two uninitialized symbol warnings in the new code adding
support of the PEAK-System PCAN-PCI Express FD boards, in the socket-CAN
network protocol family.

Signed-off-by: Stephane Grosjean <s.grosjean@peak-system.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
This commit is contained in:
Stephane Grosjean 2017-05-03 10:35:04 +02:00 committed by Marc Kleine-Budde
parent ff3416fb5b
commit f2a918b40c
1 changed files with 1 additions and 1 deletions

View File

@ -489,7 +489,7 @@ int peak_canfd_handle_msgs_list(struct peak_canfd_priv *priv,
struct pucan_rx_msg *msg_list, int msg_count) struct pucan_rx_msg *msg_list, int msg_count)
{ {
void *msg_ptr = msg_list; void *msg_ptr = msg_list;
int i, msg_size; int i, msg_size = 0;
for (i = 0; i < msg_count; i++) { for (i = 0; i < msg_count; i++) {
msg_size = peak_canfd_handle_msg(priv, msg_ptr); msg_size = peak_canfd_handle_msg(priv, msg_ptr);