usb_update: Add support for INJECT_ENTROPY command (fixups)
Minor fixups on CL:513807.
BRANCH=none
TEST=none
Commit-Ready: Nicolas Boichat
Tested-by: Nicolas Boichat
@@ -219,8 +219,9 @@ static int try_vendor_command(struct consumer const *consumer, size_t count)
}
CPRINTS("Adding %db of entropy", entropy_count);
- /* Add the whole buffer to entropy. */
- rollback_add_entropy(buffer+header_size, entropy_count);
+ /* Add the entropy to secret. */
+ rollback_add_entropy(buffer + header_size,
+ entropy_count);
break;
}
#endif
