Thread (24 messages) flat view 24 messages, 13 authors, 2011-06-16

Re: [PATCH net-next 2/2] drivers/net: Remove casts of void *

From: Geert Uytterhoeven <geert@linux-m68k.org>
Date: 2011-06-14 09:21:27
Also in: lkml

On Tue, Jun 14, 2011 at 06:02, Joe Perches [off-list ref] wrote:
Unnecessary casts of void * clutter the code.
quoted hunk ↗ jump to hunk
--- a/drivers/net/a2065.c
+++ b/drivers/net/a2065.c
@@ -426,7 +426,7 @@ static irqreturn_t lance_interrupt (int irq, void *dev_id)
       volatile struct lance_regs *ll;
       int csr0;

-       dev = (struct net_device *) dev_id;
+       dev = dev_id;
I think it would look better if you merge this line with the line that
defines "dev".
       lp = netdev_priv(dev);
       ll = lp->ll;
Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help