A non C99 style struct initialization was fixed Signed-off-by: Gerhard Uttenthaler <uttenthaler@xxxxxxxxxxxxxxxx> --- drivers/net/can/usb/ems_usb.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/drivers/net/can/usb/ems_usb.c b/drivers/net/can/usb/ems_usb.c index a70bda631e4e..a9819287e6a7 100644 --- a/drivers/net/can/usb/ems_usb.c +++ b/drivers/net/can/usb/ems_usb.c @@ -553,12 +553,13 @@ static int ems_usb_write_mode(struct ems_usb *dev, u8 mode) */ static int ems_usb_control_cmd(struct ems_usb *dev, u8 val) { - struct ems_cpc_msg cmd; - - cmd.type = CPC_CMD_TYPE_CONTROL; - cmd.length = CPC_MSG_HEADER_LEN + 1; - - cmd.msgid = 0; + struct ems_cpc_msg cmd = { + .type = CPC_CMD_TYPE_CONTROL, + .length = CPC_MSG_HEADER_LEN + 1, + .msgid = 0, + .ts_sec = 0, + .ts_nsec = 0 + }; cmd.msg.generic[0] = val; -- 2.26.2 -- EMS Dr. Thomas Wuensche e.K. Sonnenhang 3 85304 Ilmmuenster HR Ingolstadt, HRA 170106 Phone: +49-8441-490260 Fax : +49-8441-81860 http://www.ems-wuensche.com