[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1443474642-9965-1-git-send-email-luisbg@osg.samsung.com>
Date: Mon, 28 Sep 2015 22:10:42 +0100
From: Luis de Bethencourt <luisbg@....samsung.com>
To: linux-kernel@...r.kernel.org
Cc: abbotti@....co.uk, hsweeten@...ionengravers.com,
gregkh@...uxfoundation.org, amaury.denoyelle@...il.com,
devel@...verdev.osuosl.org,
Luis de Bethencourt <luisbg@....samsung.com>
Subject: [PATCH] staging: comedi: cb_pcidas64: remove unused code
Remove the disabled code, for now, with #if 0.
Signed-off-by: Luis de Bethencourt <luisbg@....samsung.com>
---
Hi,
The code after the return is dead code. There is a comment saying it is
disabled for now, it would be good if the code is removed with #if 0 as
well.
Thanks,
Luis
drivers/staging/comedi/drivers/cb_pcidas64.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/staging/comedi/drivers/cb_pcidas64.c b/drivers/staging/comedi/drivers/cb_pcidas64.c
index d33b8fe..f86ea9f 100644
--- a/drivers/staging/comedi/drivers/cb_pcidas64.c
+++ b/drivers/staging/comedi/drivers/cb_pcidas64.c
@@ -2233,10 +2233,12 @@ static int use_hw_sample_counter(struct comedi_cmd *cmd)
/* disable for now until I work out a race */
return 0;
+#if 0
if (cmd->stop_src == TRIG_COUNT && cmd->stop_arg <= max_counter_value)
return 1;
return 0;
+#endif
}
static void setup_sample_counters(struct comedi_device *dev,
--
2.5.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists