]> git.baikalelectronics.ru Git - kernel.git/commit
atm: he: Fix undefined sequence points.
authorDavid S. Miller <davem@davemloft.net>
Sun, 17 Apr 2011 07:07:55 +0000 (00:07 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 17 Apr 2011 07:07:55 +0000 (00:07 -0700)
commit8c725392fa4d29d2ff6d56b1137f89f8adf5df21
tree7fe90c96a38eb0caaa058fd81a3b5b83497ad54c
parent1e1bb92a31723bd538a9bde191a595ba57e90f5f
atm: he: Fix undefined sequence points.

GCC complains in these queue index operations because we
perform operations of the form:

x = some_operation(++x);

which is undefined.  Replace with:

x = some_operation(x + 1);

which is well defined and provides the intended operation.

Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/atm/he.c