hc
2024-05-10 ee930fffee469d076998274a2ca55e13dc1efb67
kernel/drivers/watchdog/pcwd_usb.c
....@@ -325,7 +325,8 @@
325325 static int usb_pcwd_get_temperature(struct usb_pcwd_private *usb_pcwd,
326326 int *temperature)
327327 {
328
- unsigned char msb, lsb;
328
+ unsigned char msb = 0x00;
329
+ unsigned char lsb = 0x00;
329330
330331 usb_pcwd_send_command(usb_pcwd, CMD_READ_TEMP, &msb, &lsb);
331332
....@@ -341,7 +342,8 @@
341342 static int usb_pcwd_get_timeleft(struct usb_pcwd_private *usb_pcwd,
342343 int *time_left)
343344 {
344
- unsigned char msb, lsb;
345
+ unsigned char msb = 0x00;
346
+ unsigned char lsb = 0x00;
345347
346348 /* Read the time that's left before rebooting */
347349 /* Note: if the board is not yet armed then we will read 0xFFFF */