aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/unisys
diff options
context:
space:
mode:
authorKen Depro <kenneth.depro@unisys.com>2014-11-03 19:56:32 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-11-04 00:04:02 (GMT)
commit5519b5f5514ee8282044bf0d5a30481fb5c1b3bb (patch)
tree71174dfe301172a917235da0310fd92b6568122e /drivers/staging/unisys
parentc159921f7eca8ca323316e7c0ad64d0e073b2ded (diff)
staging: unisys: Remove unneeded spaces from channel.c
This patch removes some unneeded white space after casts within the channel.c file. The checkpatch script was run after these changes, and no further checks or warnings were seen. Signed-off-by: Ken Depro <kenneth.depro@unisys.com> Signed-off-by: Ben Romer <benjamin.romer@unisys.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/unisys')
-rw-r--r--drivers/staging/unisys/channels/channel.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/staging/unisys/channels/channel.c b/drivers/staging/unisys/channels/channel.c
index 2fc61a7..74cc4d6 100644
--- a/drivers/staging/unisys/channels/channel.c
+++ b/drivers/staging/unisys/channels/channel.c
@@ -51,7 +51,7 @@ unsigned char spar_signal_insert(struct channel_header __iomem *ch, u32 queue,
struct signal_queue_header __iomem *pqhdr =
(struct signal_queue_header __iomem *)
- ((char __iomem *) ch + readq(&ch->ch_space_offset))
+ ((char __iomem *)ch + readq(&ch->ch_space_offset))
+ queue;
/* capture current head and tail */
@@ -107,7 +107,7 @@ spar_signal_remove(struct channel_header __iomem *ch, u32 queue, void *sig)
void __iomem *psource;
unsigned int head, tail;
struct signal_queue_header __iomem *pqhdr =
- (struct signal_queue_header __iomem *) ((char __iomem *) ch +
+ (struct signal_queue_header __iomem *)((char __iomem *)ch +
readq(&ch->ch_space_offset)) + queue;
/* capture current head and tail */
@@ -124,7 +124,7 @@ spar_signal_remove(struct channel_header __iomem *ch, u32 queue, void *sig)
tail = (tail + 1) % readl(&pqhdr->max_slots);
/* copy signal from tail location to the area pointed to by pSignal */
- psource = (char __iomem *) pqhdr + readq(&pqhdr->sig_base_offset) +
+ psource = (char __iomem *)pqhdr + readq(&pqhdr->sig_base_offset) +
(tail * readl(&pqhdr->signal_size));
memcpy_fromio(sig, psource, readl(&pqhdr->signal_size));
@@ -162,7 +162,7 @@ unsigned int spar_signal_remove_all(struct channel_header *ch, u32 queue,
void *psource;
unsigned int head, tail, count = 0;
struct signal_queue_header *pqhdr =
- (struct signal_queue_header *) ((char *) ch +
+ (struct signal_queue_header *)((char *)ch +
ch->ch_space_offset) + queue;
/* capture current head and tail */
@@ -181,9 +181,9 @@ unsigned int spar_signal_remove_all(struct channel_header *ch, u32 queue,
* to by pSignal
*/
psource =
- (char *) pqhdr + pqhdr->sig_base_offset +
+ (char *)pqhdr + pqhdr->sig_base_offset +
(tail * pqhdr->signal_size);
- memcpy((char *) sig + (pqhdr->signal_size * count),
+ memcpy((char *)sig + (pqhdr->signal_size * count),
psource, pqhdr->signal_size);
mb(); /* channel synch */
@@ -211,7 +211,7 @@ unsigned char spar_signalqueue_empty(struct channel_header __iomem *ch,
u32 queue)
{
struct signal_queue_header __iomem *pqhdr =
- (struct signal_queue_header __iomem *) ((char __iomem *) ch +
+ (struct signal_queue_header __iomem *)((char __iomem *)ch +
readq(&ch->ch_space_offset)) + queue;
return readl(&pqhdr->head) == readl(&pqhdr->tail);
}

Privacy Policy