All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] staging: hp: hp100.c: remove commented out code
@ 2020-03-09 17:12 Lourdes Pedrajas
  2020-03-09 21:09 ` [Outreachy kernel] " Julia Lawall
  0 siblings, 1 reply; 3+ messages in thread
From: Lourdes Pedrajas @ 2020-03-09 17:12 UTC (permalink / raw)
  To: outreachy-kernel; +Cc: gregkh, perex

Remove unused code.

Signed-off-by: Lourdes Pedrajas <lu@pplo.net>
---
 drivers/staging/hp/hp100.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/drivers/staging/hp/hp100.c b/drivers/staging/hp/hp100.c
index e2f0b58e5dfd..b89c4dcf53f5 100644
--- a/drivers/staging/hp/hp100.c
+++ b/drivers/staging/hp/hp100.c
@@ -511,12 +511,6 @@ static int hp100_probe1(struct net_device *dev, int ioaddr, u_char bus,
 	 *   0x2260 -> EISA HP, BusMaster (Shasta Chip)
 	 */
 
-#if 0
-	local_mode = 0x2270;
-	hp100_outw(0xfefe, OPTION_LSW);
-	hp100_outw(local_mode | HP100_SET_LB | HP100_SET_HB, OPTION_LSW);
-#endif
-
 	/* hp100_mode value maybe used in future by another card */
 	local_mode = hp100_mode;
 	if (local_mode < 1 || local_mode > 4)
-- 
2.17.1



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

* Re: [Outreachy kernel] [PATCH] staging: hp: hp100.c: remove commented out code
  2020-03-09 17:12 [PATCH] staging: hp: hp100.c: remove commented out code Lourdes Pedrajas
@ 2020-03-09 21:09 ` Julia Lawall
  2020-03-10 11:47   ` Lourdes Pedrajas
  0 siblings, 1 reply; 3+ messages in thread
From: Julia Lawall @ 2020-03-09 21:09 UTC (permalink / raw)
  To: Lourdes Pedrajas; +Cc: outreachy-kernel, gregkh, perex

On Mon, 9 Mar 2020, Lourdes Pedrajas wrote:

> Remove unused code.

This could be a little more informative.  For example, you could use git
blame to find out how long the code has been there.  If it has been there
since the driver was introduced n years ago, that could be a useful piece
of information to make clear that the code really is unnecessary.

julia

>
> Signed-off-by: Lourdes Pedrajas <lu@pplo.net>
> ---
>  drivers/staging/hp/hp100.c | 6 ------
>  1 file changed, 6 deletions(-)
>
> diff --git a/drivers/staging/hp/hp100.c b/drivers/staging/hp/hp100.c
> index e2f0b58e5dfd..b89c4dcf53f5 100644
> --- a/drivers/staging/hp/hp100.c
> +++ b/drivers/staging/hp/hp100.c
> @@ -511,12 +511,6 @@ static int hp100_probe1(struct net_device *dev, int ioaddr, u_char bus,
>  	 *   0x2260 -> EISA HP, BusMaster (Shasta Chip)
>  	 */
>
> -#if 0
> -	local_mode = 0x2270;
> -	hp100_outw(0xfefe, OPTION_LSW);
> -	hp100_outw(local_mode | HP100_SET_LB | HP100_SET_HB, OPTION_LSW);
> -#endif
> -
>  	/* hp100_mode value maybe used in future by another card */
>  	local_mode = hp100_mode;
>  	if (local_mode < 1 || local_mode > 4)
> --
> 2.17.1
>
> --
> You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to outreachy-kernel+unsubscribe@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/20200309171224.5131-1-lu%40pplo.net.
>


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

* Re: [Outreachy kernel] [PATCH] staging: hp: hp100.c: remove commented out code
  2020-03-09 21:09 ` [Outreachy kernel] " Julia Lawall
@ 2020-03-10 11:47   ` Lourdes Pedrajas
  0 siblings, 0 replies; 3+ messages in thread
From: Lourdes Pedrajas @ 2020-03-10 11:47 UTC (permalink / raw)
  To: Julia Lawall; +Cc: outreachy-kernel, gregkh, perex

On Mon, Mar 09, 2020 at 10:09:25PM +0100, Julia Lawall wrote:
> On Mon, 9 Mar 2020, Lourdes Pedrajas wrote:
> 
> > Remove unused code.
> 
> This could be a little more informative.  For example, you could use git
> blame to find out how long the code has been there.  If it has been there
> since the driver was introduced n years ago, that could be a useful piece
> of information to make clear that the code really is unnecessary.
> 
> julia
> 
I agree. This patch is being merged, but next time I'll use your hint,
it's useful. Thank you for your patience!


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

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

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-09 17:12 [PATCH] staging: hp: hp100.c: remove commented out code Lourdes Pedrajas
2020-03-09 21:09 ` [Outreachy kernel] " Julia Lawall
2020-03-10 11:47   ` Lourdes Pedrajas

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.