Commit ff247e7f authored by Bryan Thompson's avatar Bryan Thompson Committed by Greg Kroah-Hartman

staging: unisys: visorchannel: Fix alignment issues

Use the appropriate whitespace for multiline statements in visorchannel_funcs.c
Signed-off-by: default avatarBryan Thompson <bryan.thompson@unisys.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 0d511a38
...@@ -226,7 +226,7 @@ visorchannel_read(VISORCHANNEL *channel, ulong offset, ...@@ -226,7 +226,7 @@ visorchannel_read(VISORCHANNEL *channel, ulong offset,
int rc = visor_memregion_read(channel->memregion, offset, int rc = visor_memregion_read(channel->memregion, offset,
local, nbytes); local, nbytes);
if ((rc >= 0) && (offset == 0) && if ((rc >= 0) && (offset == 0) &&
(nbytes >= sizeof(struct channel_header))) { (nbytes >= sizeof(struct channel_header))) {
memcpy(&channel->chan_hdr, local, memcpy(&channel->chan_hdr, local,
sizeof(struct channel_header)); sizeof(struct channel_header));
} }
...@@ -399,7 +399,7 @@ safe_sig_queue_validate(struct signal_queue_header *psafe_sqh, ...@@ -399,7 +399,7 @@ safe_sig_queue_validate(struct signal_queue_header *psafe_sqh,
punsafe_sqh->tail = *ptail; punsafe_sqh->tail = *ptail;
ERRDRV("safe_sig_queue_validate: head = 0x%x, tail = 0x%x, MaxSlots = 0x%x", ERRDRV("safe_sig_queue_validate: head = 0x%x, tail = 0x%x, MaxSlots = 0x%x",
*phead, *ptail, psafe_sqh->max_slots); *phead, *ptail, psafe_sqh->max_slots);
return 0; return 0;
} }
return 1; return 1;
...@@ -622,9 +622,10 @@ visorchannel_debug(VISORCHANNEL *channel, int nQueues, ...@@ -622,9 +622,10 @@ visorchannel_debug(VISORCHANNEL *channel, int nQueues,
struct signal_queue_header q; struct signal_queue_header q;
errcode = visorchannel_read(channel, errcode = visorchannel_read(channel,
off + phdr->ch_space_offset + off +
(i * sizeof(q)), phdr->ch_space_offset +
&q, sizeof(q)); (i * sizeof(q)),
&q, sizeof(q));
if (errcode < 0) { if (errcode < 0) {
seq_printf(seq, seq_printf(seq,
"failed to read signal queue #%d from channel @0x%-16.16Lx errcode=%d\n", "failed to read signal queue #%d from channel @0x%-16.16Lx errcode=%d\n",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment