staging/slicoss: Fix operation may be undefined warning
authorPeter Huewe <peterhuewe@gmx.de>
Tue, 19 Feb 2013 04:18:50 +0000 (05:18 +0100)
committerBen Hutchings <ben@decadent.org.uk>
Sat, 11 Nov 2017 13:34:48 +0000 (13:34 +0000)
commitb765188ad9753664fc87b74a7ef262cb5bea94d2
treecba4093272e4b80f4bc2491f73e367cbd2ca80ad
parent0e283937392d4c91189a18b7e48ca3043c70db58
staging/slicoss: Fix operation may be undefined warning

commit 6d1b80fd886937ad4d6169ffa78cb0075eebce53 upstream.

gcc complains about an undefined operation:
slicoss.c:1417:19: warning: operation on 'rspq->pageindex' may be
undefined [-Wsequence-point]

The intended operation was (probably) to retrieve the pageindex + 1 and let
it wrap around if it reaches the num_pages.

Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/staging/slicoss/slicoss.c