staging: unisys: visorchannel.c fix spacing around cast
authorDavid Kershner <david.kershner@unisys.com>
Mon, 12 Oct 2015 19:19:41 +0000 (15:19 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Oct 2015 03:51:19 +0000 (20:51 -0700)
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>
drivers/staging/unisys/visorbus/visorchannel.c

index 2693c46afdc0bd7b284cb11254d8d31c5987c1b0..0b6a210962d3f58b98ef75f25279fcfe7cf86311 100644 (file)
@@ -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)