aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/atm
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2011-04-17 03:07:55 -0400
committerDavid S. Miller <davem@davemloft.net>2011-04-17 03:07:55 -0400
commite60c5e14fbfcaa54f430aad80b38763a403b2158 (patch)
tree7fe90c96a38eb0caaa058fd81a3b5b83497ad54c /drivers/atm
parentdd182574d86e22faaaed37db79e3d54e773f29f7 (diff)
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>
Diffstat (limited to 'drivers/atm')
-rw-r--r--drivers/atm/he.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/atm/he.c b/drivers/atm/he.c
index 6cf59bf281dc..9a51df4f5b74 100644
--- a/drivers/atm/he.c
+++ b/drivers/atm/he.c
@@ -1801,7 +1801,7 @@ return_host_buffers:
1801next_rbrq_entry: 1801next_rbrq_entry:
1802 he_dev->rbrq_head = (struct he_rbrq *) 1802 he_dev->rbrq_head = (struct he_rbrq *)
1803 ((unsigned long) he_dev->rbrq_base | 1803 ((unsigned long) he_dev->rbrq_base |
1804 RBRQ_MASK(++he_dev->rbrq_head)); 1804 RBRQ_MASK(he_dev->rbrq_head + 1));
1805 1805
1806 } 1806 }
1807 read_unlock(&vcc_sklist_lock); 1807 read_unlock(&vcc_sklist_lock);
@@ -1884,7 +1884,7 @@ next_tbrq_entry:
1884 pci_pool_free(he_dev->tpd_pool, tpd, TPD_ADDR(tpd->status)); 1884 pci_pool_free(he_dev->tpd_pool, tpd, TPD_ADDR(tpd->status));
1885 he_dev->tbrq_head = (struct he_tbrq *) 1885 he_dev->tbrq_head = (struct he_tbrq *)
1886 ((unsigned long) he_dev->tbrq_base | 1886 ((unsigned long) he_dev->tbrq_base |
1887 TBRQ_MASK(++he_dev->tbrq_head)); 1887 TBRQ_MASK(he_dev->tbrq_head + 1));
1888 } 1888 }
1889 1889
1890 if (updated) { 1890 if (updated) {