[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <YtTRj2MF5/nd94Pe@google.com>
Date: Mon, 18 Jul 2022 03:20:47 +0000
From: Tzung-Bi Shih <tzungbi@...nel.org>
To: Patryk Duda <pdk@...ihalf.com>
Cc: Benson Leung <bleung@...omium.org>,
Guenter Roeck <groeck@...omium.org>,
chrome-platform@...ts.linux.dev, linux-kernel@...r.kernel.org,
upstream@...ihalf.com
Subject: Re: [PATCH] platform/chrome: cros_ec_proto: Update version on
GET_NEXT_EVENT failure
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.
Powered by blists - more mailing lists