Re: [PATCH] platform/chrome: cros_ec_proto: Update version on GET_NEXT_EVENT failure

From: Tzung-Bi Shih
Date: Sun Jul 17 2022 - 23:20:58 EST


On Thu, Jul 14, 2022 at 06:09:51PM +0200, Patryk Duda wrote:
> @@ -750,6 +750,7 @@ int cros_ec_get_next_event(struct cros_ec_device *ec_dev,
> u8 event_type;
> u32 host_event;
> int ret;
> + u32 ver_mask = 0;

Drop the initialization. Ideally, `ver_mask` wouldn't be touched if `ret` is
less than 0.