mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-11 03:24:58 -06:00
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:
parent
ff4873cb8c
commit
abd696e4f7
5 changed files with 46 additions and 43 deletions
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
#include "s390-ccw.h"
|
#include "s390-ccw.h"
|
||||||
|
|
||||||
// #define DEBUG_FALLBACK
|
/* #define DEBUG_FALLBACK */
|
||||||
|
|
||||||
#ifdef DEBUG_FALLBACK
|
#ifdef DEBUG_FALLBACK
|
||||||
#define dputs(txt) \
|
#define dputs(txt) \
|
||||||
|
@ -159,13 +159,15 @@ static int zipl_load_segment(struct component_entry *entry)
|
||||||
u64 *cur_desc = (void *)&bprs[i];
|
u64 *cur_desc = (void *)&bprs[i];
|
||||||
|
|
||||||
blockno = bprs[i].blockno;
|
blockno = bprs[i].blockno;
|
||||||
if (!blockno)
|
if (!blockno) {
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
/* we need the updated blockno for the next indirect entry in the
|
/* we need the updated blockno for the next indirect entry in the
|
||||||
chain, but don't want to advance address */
|
chain, but don't want to advance address */
|
||||||
if (i == (max_entries - 1))
|
if (i == (max_entries - 1)) {
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
if (bprs[i].blockct == 0 && unused_space(&bprs[i + 1],
|
if (bprs[i].blockct == 0 && unused_space(&bprs[i + 1],
|
||||||
sizeof(struct scsi_blockptr))) {
|
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,
|
address = virtio_load_direct(cur_desc[0], cur_desc[1], 0,
|
||||||
(void *)address);
|
(void *)address);
|
||||||
if (address == -1)
|
if (address == -1) {
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} while (blockno);
|
} while (blockno);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue