staging: comedi: ni_mio_common.c: fix coding style issue
PATCH 1/1 staging: comedi: ni_mio_common.c: fix coding style issue
Quoted 1 line
From
3e90ab52ad9b437d7c09cc667161cdb855c0cc7bMon Sep 17 00:00:00 2001
From: =?UTF-8?q?Christopher=20M=C3=A5rtensson?= <[email protected]>
Date: Sun, 23 Jul 2017 13:05:09 +0200
Subject: [PATCH] staging: comedi: ni_mio_common.c: fix coding style issue
"checkpatch.pl -f ..." gave
ERROR: open brace '{' following function definitions go on the next line
--- drivers/staging/comedi/drivers/ni_mio_common.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/staging/comedi/drivers/ni_mio_common.c +2 -1
@@ -1962,7 +1962,8 @@ static unsigned int ni_timer_to_ns(const struct comedi_device *dev, int timer)static void ni_cmd_set_mite_transfer (struct mite_ring *ring,struct comedi_subdevice *sdev,const struct comedi_cmd *cmd, -unsigned int max_count) { +unsigned int max_count) +{#ifdef PCIDMA unsigned int nbytes = max_count;
Signature · 1 line
2.7.4
Quoted 19 lines · Christopher Mårtensson
From
3e90ab52ad9b437d7c09cc667161cdb855c0cc7bMon Sep 17 00:00:00 2001
From: =?UTF-8?q?Christopher=20M=C3=A5rtensson?= <[email protected]>
Date: Sun, 23 Jul 2017 13:05:09 +0200
Subject: [PATCH] staging: comedi:ni_mio_common.c: fix coding style issue"checkpatch.pl -f ..." gave
ERROR: open brace '{' following function definitions go on the next lineSigned-off-by Christopher Mårtensson <[email protected]>--- drivers/staging/comedi/drivers/ni_mio_common.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/staging/comedi/drivers/ni_mio_common.c +0
-0
drivers/staging/comedi/drivers/ni_mio_common.c static unsigned int ni_timer_to_ns(const struct comedi_device *dev, int timer) · line 1969
Quoted 9 lines
drivers/staging/comedi/drivers/ni_mio_common.c +2
-1@@ -1962,7 +1962,8 @@ static unsigned int ni_timer_to_ns(const struct comedi_device *dev, int timer)static void ni_cmd_set_mite_transfer (struct mite_ring *ring,struct comedi_subdevice *sdev,const struct comedi_cmd *cmd, -unsigned int max_count) { +unsigned int max_count) +{#ifdef PCIDMA unsigned int nbytes = max_count;
Thanks for the fix.
Signature · 2 lines
-=( Ian Abbott @ MEV Ltd. E-mail: <[email protected]> )=- -=( Web: http://www.mev.co.uk/ )=-