lkml.org 
[lkml]   [2016]   [Feb]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH] Documentation/memory-barriers: fix wrong comment in example
Date
SeongJae Park <sj38.park@gmail.com> 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

\
 
 \ /
  Last update: 2016-02-22 11:21    [W:0.613 / U:0.704 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site