From: David Kershner Date: Mon, 12 Oct 2015 19:19:41 +0000 (-0400) Subject: staging: unisys: visorchannel.c fix spacing around cast X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=ad1a71546cd1cb8cf009fdbc15aad9bc7efb820f;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: Benjamin Romer Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/unisys/visorbus/visorchannel.c b/drivers/staging/unisys/visorbus/visorchannel.c index 2693c46afdc0..0b6a210962d3 100644 --- a/drivers/staging/unisys/visorbus/visorchannel.c +++ b/drivers/staging/unisys/visorbus/visorchannel.c @@ -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)