mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-27 11:55:53 +00:00
staging: unisys: visorchannel.c fix spacing around cast
Clean up the following checkpatch.pl --strict checks: CHECK: No space is necessary after a cast + buf = (u8 *) __get_free_page(GFP_KERNEL); CHECK: No space is necessary after a cast + free_page((unsigned long) buf); CHECK: spaces preferred around that '+' (ctx:VxE) + SIG_QUEUE_OFFSET(&channel->chan_hdr, queue)+ \ ^ Signed-off-by: David Kershner <david.kershner@unisys.com> Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
54bf4d454e
commit
ad1a71546c
@ -279,7 +279,7 @@ visorchannel_clear(struct visorchannel *channel, ulong offset, u8 ch,
|
||||
int written = 0;
|
||||
u8 *buf;
|
||||
|
||||
buf = (u8 *) __get_free_page(GFP_KERNEL);
|
||||
buf = (u8 *)__get_free_page(GFP_KERNEL);
|
||||
if (!buf)
|
||||
return -ENOMEM;
|
||||
|
||||
@ -301,7 +301,7 @@ visorchannel_clear(struct visorchannel *channel, ulong offset, u8 ch,
|
||||
err = 0;
|
||||
|
||||
cleanup:
|
||||
free_page((unsigned long) buf);
|
||||
free_page((unsigned long)buf);
|
||||
return err;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(visorchannel_clear);
|
||||
@ -332,7 +332,7 @@ EXPORT_SYMBOL_GPL(visorchannel_get_header);
|
||||
*/
|
||||
#define SIG_WRITE_FIELD(channel, queue, sig_hdr, FIELD) \
|
||||
(visorchannel_write(channel, \
|
||||
SIG_QUEUE_OFFSET(&channel->chan_hdr, queue)+ \
|
||||
SIG_QUEUE_OFFSET(&channel->chan_hdr, queue) +\
|
||||
offsetof(struct signal_queue_header, FIELD), \
|
||||
&((sig_hdr)->FIELD), \
|
||||
sizeof((sig_hdr)->FIELD)) >= 0)
|
||||
|
Loading…
Reference in New Issue
Block a user