diff options
author | Jett Rink <jettrink@chromium.org> | 2019-08-12 15:15:26 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-08-13 14:09:06 +0000 |
commit | 4c560396337ee1f56bea419218a18df5af9e3e88 (patch) | |
tree | c6ed3d9aa00cefb5b57cd612b5e40dc3c1830f49 | |
parent | bb7c26f3d4172e715e277f9b0f03c45e3131e917 (diff) | |
download | chrome-ec-4c560396337ee1f56bea419218a18df5af9e3e88.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/+/1749551
Commit-Queue: Denis Brockus <dbrockus@chromium.org>
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
-rw-r--r-- | common/usb_pd_protocol.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/usb_pd_protocol.c b/common/usb_pd_protocol.c index 10bf785ac3..b72053e683 100644 --- a/common/usb_pd_protocol.c +++ b/common/usb_pd_protocol.c @@ -2766,7 +2766,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); |