From ec04eabb0190afdbf6d3ebbb9419c16fe4f407f0 Mon Sep 17 00:00:00 2001 From: Nicolas Boichat Date: Fri, 28 Apr 2017 08:29:26 +0800 Subject: usb_update: 1-byte response to extra commands The existing commands do not really need longer response code. Future commands can always reply with more data as needed. BRANCH=none BUG=b:35587171 TEST=Update hammer using usb_updater2 Change-Id: I37cb8ac444d58216a7d98c9090043b06d95c74e1 Reviewed-on: https://chromium-review.googlesource.com/489887 Commit-Ready: Nicolas Boichat Tested-by: Nicolas Boichat Reviewed-by: Randall Spangler --- common/usb_update.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common/usb_update.c') diff --git a/common/usb_update.c b/common/usb_update.c index cf5850e53d..53aa9d09ae 100644 --- a/common/usb_update.c +++ b/common/usb_update.c @@ -141,7 +141,7 @@ static int try_vendor_command(struct consumer const *consumer, size_t count) if (update_pdu_valid(&cmd_buffer->cmd, count - offsetof(struct update_frame_header, cmd))) { enum update_extra_command subcommand; - uint16_t response; + uint8_t response; size_t response_size = sizeof(response); /* looks good, let's process it. */ -- cgit v1.2.1