Re: [PATCH] HID: simplify implement() a bit

From: Jiri Kosina
Date: Thu Apr 07 2016 - 09:46:52 EST


On Wed, 6 Apr 2016, Dmitry Torokhov wrote:

> The 'size' variable is not really needed, and we can also shift constant
> in the loop body when masking off existing bits.
>
> Also we do not have to us 64 bit calculations if we take an extra
> branch.
>
> Suggested-by: Doug Anderson <dianders@xxxxxxxxxxxx>
> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@xxxxxxxxx>

Applied to for-4.7/upstream. Thanks!

--
Jiri Kosina
SUSE Labs