[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date: Mon, 06 Jul 2009 19:10:11 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: julia@...u.dk
Cc: netdev@...r.kernel.org, linux-kernel@...r.kernel.org,
kernel-janitors@...r.kernel.org
Subject: Re: [PATCH] drivers/net/cs89x0.c: Avoid using magic number in
set_dma_mode
From: Julia Lawall <julia@...u.dk>
Date: Sun, 5 Jul 2009 09:23:21 +0200 (CEST)
> The constant DMA_RX_MODE is defined to be 0x14 in the local include file
> cs89x0.h. Since a constant with the same name is used elsewhere with
> set_dma_mode, it seems likely that this constant could be used here.
>
> The semantic match that finds this problem is as follows:
> (http://www.emn.fr/x-info/coccinelle/)
...
> Signed-off-by: Julia Lawall <julia@...u.dk>
Applied to net-next-2.6, thanks!
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists