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

There are two #if 0 blocks that have no recent history of any change.
Remove those code blocks for improved readability of the code.

Signed-off-by: Deepak R Varma <mh12gx2825@gmail.com>
---
Changes in V3:
	- moved patch revision comments for v2 into this area
Changes in V2:
	- Removed extra spaces after colon in patch description
---
 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] 3+ messages in thread

* Re: [Outreachy kernel] [PATCH v3] staging: comedi: dt2801: remove old unused code
  2020-03-10 20:14 [PATCH v3] staging: comedi: dt2801: remove old unused code Deepak R Varma
@ 2020-03-10 20:18 ` Julia Lawall
  2020-03-11  7:02 ` Greg KH
  1 sibling, 0 replies; 3+ messages in thread
From: Julia Lawall @ 2020-03-10 20:18 UTC (permalink / raw)
  To: Deepak R Varma; +Cc: outreachy-kernel, abbotti, hsweeten, gregkh, daniel.baluta

On Wed, 11 Mar 2020, Deepak R Varma wrote:

> There are two #if 0 blocks that have no recent history of any change.
> Remove those code blocks for improved readability of the code.
>
> Signed-off-by: Deepak R Varma <mh12gx2825@gmail.com>
> ---
> Changes in V3:
> 	- moved patch revision comments for v2 into this area
> Changes in V2:
> 	- Removed extra spaces after colon in patch description
> ---

It doesn't hurt anything, but you don't need this ---

julia


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

* Re: [PATCH v3] staging: comedi: dt2801: remove old unused code
  2020-03-10 20:14 [PATCH v3] staging: comedi: dt2801: remove old unused code Deepak R Varma
  2020-03-10 20:18 ` [Outreachy kernel] " Julia Lawall
@ 2020-03-11  7:02 ` Greg KH
  1 sibling, 0 replies; 3+ messages in thread
From: Greg KH @ 2020-03-11  7:02 UTC (permalink / raw)
  To: Deepak R Varma; +Cc: outreachy-kernel, abbotti, hsweeten, daniel.baluta

On Wed, Mar 11, 2020 at 01:44:22AM +0530, Deepak R Varma wrote:
> There are two #if 0 blocks that have no recent history of any change.
> Remove those code blocks for improved readability of the code.
> 
> Signed-off-by: Deepak R Varma <mh12gx2825@gmail.com>
> ---
> Changes in V3:
> 	- moved patch revision comments for v2 into this area
> Changes in V2:
> 	- Removed extra spaces after colon in patch description
> ---
>  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

These should be left alone, as they document hardware that doesn't
happen to be supported at the moment.

thanks,

greg k-h


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

end of thread, other threads:[~2020-03-11  7:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-10 20:14 [PATCH v3] staging: comedi: dt2801: remove old unused code Deepak R Varma
2020-03-10 20:18 ` [Outreachy kernel] " Julia Lawall
2020-03-11  7:02 ` Greg KH

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.