summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJett Rink <jettrink@chromium.org>2019-08-12 15:15:26 -0600
committerCommit Bot <commit-bot@chromium.org>2019-08-13 20:17:01 +0000
commite12d5be41915b5651701fc35ef17f84d2adca0c5 (patch)
tree00cda2a1672065c77aa588383714f583f3daefcd
parentfbf117e396d282fd3d860396d6421110423b527c (diff)
downloadchrome-ec-e12d5be41915b5651701fc35ef17f84d2adca0c5.tar.gz
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 <jettrink@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1749550 Reviewed-by: Denis Brockus <dbrockus@chromium.org>
-rw-r--r--common/usb_pd_protocol.c2
1 files changed, 1 insertions, 1 deletions
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);