Re: [PATCH 04/12] EDAC: Employ atomic_fetch_inc()

From: Borislav Petkov
Date: Tue Jun 21 2016 - 09:59:50 EST


On Mon, Jun 20, 2016 at 01:05:56PM -0700, Davidlohr Bueso wrote:
> Now that we have fetch_inc() we can stop using inc_return() - 1.
>
> These are very similar to the existing OP-RETURN primitives we already
> have, except they return the value of the atomic variable _before_
> modification.
>
> Cc: Doug Thompson <dougthompson@xxxxxxxxxxxx>
> Cc: Borislav Petkov <bp@xxxxxxxxx>
> Cc: Mauro Carvalho Chehab <mchehab@xxxxxxxxxxxxxxx>
> Signed-off-by: Davidlohr Bueso <dbueso@xxxxxxx>
> ---
> drivers/edac/edac_device.c | 2 +-
> drivers/edac/edac_pci.c | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)

Acked-by: Borislav Petkov <bp@xxxxxxx>

--
Regards/Gruss,
Boris.

ECO tip #101: Trim your mails when you reply.
--