Re: [PATCH] Documentation/memory-barriers: fix wrong comment in example

From: David Howells
Date: Mon Feb 22 2016 - 05:01:21 EST


SeongJae Park <sj38.park@xxxxxxxxx> wrote:

> a = 0;
> /* Code that does not store to variable a. */
> + does_not_change_a();
> a = 0;

Since it's not actually code that's meant to be executed, you could make it:

a = 0;
... code that does not store to variable a ...
a = 0;

David