adb: coding style update to fix checkpatch errors

This will help ensure that style guidelines are being maintained during
subsequent changes.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Tested-by: Finn Thain <fthain@telegraphics.com.au>
Acked-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20200623204936.24064-2-mark.cave-ayland@ilande.co.uk>
This commit is contained in:
Mark Cave-Ayland 2020-06-23 21:49:15 +01:00
parent 5acc270a35
commit bcaaefdbb2

View file

@ -70,8 +70,9 @@ int adb_poll(ADBBusState *s, uint8_t *obuf, uint16_t poll_mask)
olen = 0;
for (i = 0; i < s->nb_devices; i++) {
if (s->poll_index >= s->nb_devices)
if (s->poll_index >= s->nb_devices) {
s->poll_index = 0;
}
d = s->devices[s->poll_index];
if ((1 << d->devaddr) & poll_mask) {
buf[0] = ADB_READREG | (d->devaddr << 4);