intel_th: Consistency and off-by-one fix
authorPavel Machek <pavel@ucw.cz>
Wed, 14 Apr 2021 17:12:49 +0000 (20:12 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 Apr 2021 05:26:50 +0000 (07:26 +0200)
commit18ffbc47d45a1489b664dd68fb3a7610a6e1dea3
treeeaf468e2a57e3dd95541f5165a8e15479064ebd2
parentd9962f6f428449fe227f1c88c65ac3fffdf7dceb
intel_th: Consistency and off-by-one fix

Consistently use "< ... +1" in for loops.

Fix of-by-one in for_each_set_bit().

Signed-off-by: Pavel Machek <pavel@denx.de>
Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Link: https://lore.kernel.org/lkml/20190724095841.GA6952@amd/
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20210414171251.14672-6-alexander.shishkin@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hwtracing/intel_th/gth.c