]> git.karo-electronics.de Git - karo-tx-linux.git/commit
Bluetooth: Don't increment twice in eir_has_data_type()
authorJohan Hedberg <johan.hedberg@intel.com>
Mon, 26 Mar 2012 11:21:41 +0000 (14:21 +0300)
committerGustavo Padovan <gustavo@padovan.org>
Wed, 28 Mar 2012 15:28:59 +0000 (12:28 -0300)
commit2ac980970d78de43dcfa9a111d9b43d339db062d
tree5fe875a25c56eb9639ec91d325a7c312457445ec
parent246b48111c27d243164517cc6f3c031901a75854
Bluetooth: Don't increment twice in eir_has_data_type()

The parsed variable is already incremented inside the for-loop so there
no need to increment it again (not to mention that the code was
incrementing it the wrong amount).

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Gustavo Padovan <gustavo@padovan.org>
include/net/bluetooth/hci_core.h