commit | e5401bf37a69620bdf079e4ee6c30a268f06f04b | [log] [tgz] |
---|---|---|
author | Lin Wang <lin.x.wang@intel.com> | Tue Mar 17 18:32:21 2015 +0200 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Wed Mar 18 16:21:14 2015 +0100 |
tree | d17949a17d99c022cb88c6602a3146fc9f4076f9 | |
parent | 8f7e9473ab62139c78eb834f53c4ec6bc22d111f [diff] |
xhci: unify cycle state toggling operation with 'XOR' Some toggling operation in xHCI driver still use conditional toggling: ring->cycle_state = (ring->cycle_state ? 0 : 1); Use XOR to invert the cycle state instead of a conditional toggle to unify cycle state toggling operation in xHCI driver. Signed-off-by: Lin Wang <lin.x.wang@intel.com> Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>