fwserial: (coding style) useless "extern" & space
authorDominique van den Broeck <domdevlin@free.fr>
Sat, 12 Apr 2014 13:18:14 +0000 (15:18 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 25 Apr 2014 21:01:40 +0000 (14:01 -0700)
Style-only modifications to make checkpatch.pl --file --strict a bit happier.
Removed useless "extern" in dma_fifo.h ;
Removed one supernumerary space.

Signed-off-by: Dominique van den Broeck <domdevlin@free.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/fwserial/dma_fifo.h
drivers/staging/fwserial/fwserial.c

index a113fe1e6f198323194595ebb6f06ab4d691a768..1dfe75daba419e1504b4438d7102b665007e0199 100644 (file)
@@ -85,15 +85,15 @@ static inline bool dp_is_completed(struct dma_pending *dp)
        return (unsigned long)dp->data & 1UL;
 }
 
-extern void dma_fifo_init(struct dma_fifo *fifo);
-extern int dma_fifo_alloc(struct dma_fifo *fifo, int size, unsigned align,
-                         int tx_limit, int open_limit, gfp_t gfp_mask);
-extern void dma_fifo_free(struct dma_fifo *fifo);
-extern void dma_fifo_reset(struct dma_fifo *fifo);
-extern int dma_fifo_in(struct dma_fifo *fifo, const void *src, int n);
-extern int dma_fifo_out_pend(struct dma_fifo *fifo, struct dma_pending *pended);
-extern int dma_fifo_out_complete(struct dma_fifo *fifo,
-                                struct dma_pending *complete);
+void dma_fifo_init(struct dma_fifo *fifo);
+int dma_fifo_alloc(struct dma_fifo *fifo, int size, unsigned align,
+                  int tx_limit, int open_limit, gfp_t gfp_mask);
+void dma_fifo_free(struct dma_fifo *fifo);
+void dma_fifo_reset(struct dma_fifo *fifo);
+int dma_fifo_in(struct dma_fifo *fifo, const void *src, int n);
+int dma_fifo_out_pend(struct dma_fifo *fifo, struct dma_pending *pended);
+int dma_fifo_out_complete(struct dma_fifo *fifo,
+                         struct dma_pending *complete);
 
 /* returns the # of used bytes in the fifo */
 static inline int dma_fifo_level(struct dma_fifo *fifo)
index 3862ddf298914fa64add20503417acf4378df6d3..ebe3259ac4b7f693f4c01886a3f280e52edcdf79 100644 (file)
@@ -1820,7 +1820,7 @@ static void fwserial_release_port(struct fwtty_port *port, bool reset)
 
 static void fwserial_plug_timeout(unsigned long data)
 {
-       struct fwtty_peer *peer = (struct fwtty_peer *) data;
+       struct fwtty_peer *peer = (struct fwtty_peer *)data;
        struct fwtty_port *port;
 
        spin_lock_bh(&peer->lock);
This page took 0.027211 seconds and 5 git commands to generate.