All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] staging : comedi : dt2801 : remove old unused code
@ 2020-03-10 15:50 Deepak R Varma
  2020-03-10 16:22 ` [Outreachy kernel] " Julia Lawall
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Deepak R Varma @ 2020-03-10 15:50 UTC (permalink / raw)
  To: outreachy-kernel; +Cc: abbotti, hsweeten, gregkh, daniel.baluta

there are 2 #if 0 blocks that have no recent history of any change. We
can remove those code blocks for improved readability of the code.

Signed-off-by: Deepak R Varma <mh12gx2825@gmail.com>
---
 drivers/staging/comedi/drivers/dt2801.c | 22 ----------------------
 1 file changed, 22 deletions(-)

diff --git a/drivers/staging/comedi/drivers/dt2801.c b/drivers/staging/comedi/drivers/dt2801.c
index a29880981d81..aad02faa2f83 100644
--- a/drivers/staging/comedi/drivers/dt2801.c
+++ b/drivers/staging/comedi/drivers/dt2801.c
@@ -87,17 +87,6 @@
 #define DT2801_STATUS		1
 #define DT2801_CMD		1
 
-#if 0
-/* ignore 'defined but not used' warning */
-static const struct comedi_lrange range_dt2801_ai_pgh_bipolar = {
-	4, {
-		BIP_RANGE(10),
-		BIP_RANGE(5),
-		BIP_RANGE(2.5),
-		BIP_RANGE(1.25)
-	}
-};
-#endif
 static const struct comedi_lrange range_dt2801_ai_pgl_bipolar = {
 	4, {
 		BIP_RANGE(10),
@@ -107,17 +96,6 @@ static const struct comedi_lrange range_dt2801_ai_pgl_bipolar = {
 	}
 };
 
-#if 0
-/* ignore 'defined but not used' warning */
-static const struct comedi_lrange range_dt2801_ai_pgh_unipolar = {
-	4, {
-		UNI_RANGE(10),
-		UNI_RANGE(5),
-		UNI_RANGE(2.5),
-		UNI_RANGE(1.25)
-	}
-};
-#endif
 static const struct comedi_lrange range_dt2801_ai_pgl_unipolar = {
 	4, {
 		UNI_RANGE(10),
-- 
2.17.1



^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-03-10 20:41 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-10 15:50 [PATCH] staging : comedi : dt2801 : remove old unused code Deepak R Varma
2020-03-10 16:22 ` [Outreachy kernel] " Julia Lawall
2020-03-10 17:45 ` Deepak Varma
2020-03-10 17:53   ` [Outreachy kernel] " Julia Lawall
2020-03-10 18:38 ` Deepak Varma
2020-03-10 20:35 ` Deepak Varma
2020-03-10 20:41   ` [Outreachy kernel] " Julia Lawall

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.