From e12d5be41915b5651701fc35ef17f84d2adca0c5 Mon Sep 17 00:00:00 2001 From: Jett Rink Date: Mon, 12 Aug 2019 15:15:26 -0600 Subject: cleanup: change initializer for storm_tracker The octopus firmware branch cannot build with the { 0 } format, but it can build with {}. Since they mean the same thing, use {} everywhere. BRANCH=octopus BUG=none TEST=build on ToT and octopus branch Change-Id: I621dd89c40b8c7297db72a3093631f9aba8dd9b6 Signed-off-by: Jett Rink Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1749550 Reviewed-by: Denis Brockus --- common/usb_pd_protocol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/usb_pd_protocol.c b/common/usb_pd_protocol.c index da55a2b9b4..018894eb15 100644 --- a/common/usb_pd_protocol.c +++ b/common/usb_pd_protocol.c @@ -2657,7 +2657,7 @@ void pd_interrupt_handler_task(void *p) struct { int count; uint32_t time; - } storm_tracker[CONFIG_USB_PD_PORT_COUNT] = { 0 }; + } storm_tracker[CONFIG_USB_PD_PORT_COUNT] = {}; ASSERT(port >= 0 && port < CONFIG_USB_PD_PORT_COUNT); -- cgit v1.2.1