pc-bios/s390-ccw: make checkpatch happy

Remove tabs, tweak whitespace and comments.

Acked-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Eugene (jno) Dvurechenski <jno@linux.vnet.ibm.com>
Signed-off-by: Jens Freimann <jfrei@linux.vnet.ibm.com>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
This commit is contained in:
Eugene (jno) Dvurechenski 2014-05-19 20:05:40 +02:00 committed by Cornelia Huck
parent ff4873cb8c
commit abd696e4f7
5 changed files with 46 additions and 43 deletions

View file

@ -10,7 +10,7 @@
#include "s390-ccw.h"
// #define DEBUG_FALLBACK
/* #define DEBUG_FALLBACK */
#ifdef DEBUG_FALLBACK
#define dputs(txt) \
@ -159,13 +159,15 @@ static int zipl_load_segment(struct component_entry *entry)
u64 *cur_desc = (void *)&bprs[i];
blockno = bprs[i].blockno;
if (!blockno)
if (!blockno) {
break;
}
/* we need the updated blockno for the next indirect entry in the
chain, but don't want to advance address */
if (i == (max_entries - 1))
if (i == (max_entries - 1)) {
break;
}
if (bprs[i].blockct == 0 && unused_space(&bprs[i + 1],
sizeof(struct scsi_blockptr))) {
@ -179,9 +181,10 @@ static int zipl_load_segment(struct component_entry *entry)
}
address = virtio_load_direct(cur_desc[0], cur_desc[1], 0,
(void *)address);
if (address == -1)
if (address == -1) {
goto fail;
}
}
} while (blockno);
return 0;