Skip to content

Commit d949210

Browse files
Dominique van den Broeckgregkh
authored andcommitted
fwserial: (coding style) useless "extern" & space
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>
1 parent ea595e7 commit d949210

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

‎drivers/staging/fwserial/dma_fifo.h‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -85,15 +85,15 @@ static inline bool dp_is_completed(struct dma_pending *dp)
8585
return (unsigned long)dp->data & 1UL;
8686
}
8787

88-
extern void dma_fifo_init(struct dma_fifo *fifo);
89-
extern int dma_fifo_alloc(struct dma_fifo *fifo, int size, unsigned align,
90-
int tx_limit, int open_limit, gfp_t gfp_mask);
91-
extern void dma_fifo_free(struct dma_fifo *fifo);
92-
extern void dma_fifo_reset(struct dma_fifo *fifo);
93-
extern int dma_fifo_in(struct dma_fifo *fifo, const void *src, int n);
94-
extern int dma_fifo_out_pend(struct dma_fifo *fifo, struct dma_pending *pended);
95-
extern int dma_fifo_out_complete(struct dma_fifo *fifo,
96-
struct dma_pending *complete);
88+
void dma_fifo_init(struct dma_fifo *fifo);
89+
int dma_fifo_alloc(struct dma_fifo *fifo, int size, unsigned align,
90+
int tx_limit, int open_limit, gfp_t gfp_mask);
91+
void dma_fifo_free(struct dma_fifo *fifo);
92+
void dma_fifo_reset(struct dma_fifo *fifo);
93+
int dma_fifo_in(struct dma_fifo *fifo, const void *src, int n);
94+
int dma_fifo_out_pend(struct dma_fifo *fifo, struct dma_pending *pended);
95+
int dma_fifo_out_complete(struct dma_fifo *fifo,
96+
struct dma_pending *complete);
9797

9898
/* returns the # of used bytes in the fifo */
9999
static inline int dma_fifo_level(struct dma_fifo *fifo)

‎drivers/staging/fwserial/fwserial.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1820,7 +1820,7 @@ static void fwserial_release_port(struct fwtty_port *port, bool reset)
18201820

18211821
static void fwserial_plug_timeout(unsigned long data)
18221822
{
1823-
struct fwtty_peer *peer = (struct fwtty_peer *) data;
1823+
struct fwtty_peer *peer = (struct fwtty_peer *)data;
18241824
struct fwtty_port *port;
18251825

18261826
spin_lock_bh(&peer->lock);

0 commit comments

Comments
 (0)