summaryrefslogtreecommitdiffstats
path: root/drivers/net/r6040.c
diff options
context:
space:
mode:
authorJulia Lawall <julia@diku.dk>2008-06-23 23:12:31 +0200
committerJeff Garzik <jgarzik@redhat.com>2008-06-27 07:28:25 +0200
commit3f6602ad56dc538a846367bd6a05ac7ac4d3e641 (patch)
tree9642090d7b0f17a0f5ba8ff378e1ee1eebb2d44a /drivers/net/r6040.c
parentpcnet_cs, axnet_cs: clear bogus interrupt before request_irq (diff)
downloadlinux-3f6602ad56dc538a846367bd6a05ac7ac4d3e641.tar.xz
linux-3f6602ad56dc538a846367bd6a05ac7ac4d3e641.zip
drivers/net/r6040.c: Eliminate double sizeof
Taking sizeof the result of sizeof is quite strange and does not seem to be what is wanted here. This was fixed using the following semantic patch. (http://www.emn.fr/x-info/coccinelle/) // <smpl> @@ expression E; @@ - sizeof ( sizeof (E) - ) // </smpl> Signed-off-by: Julia Lawall <julia@diku.dk> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to '')
-rw-r--r--drivers/net/r6040.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/r6040.c b/drivers/net/r6040.c
index 858b191517b3..504a48ff73c8 100644
--- a/drivers/net/r6040.c
+++ b/drivers/net/r6040.c
@@ -273,7 +273,7 @@ static void r6040_init_ring_desc(struct r6040_descriptor *desc_ring,
dma_addr_t mapping = desc_dma;
while (size-- > 0) {
- mapping += sizeof(sizeof(*desc));
+ mapping += sizeof(*desc);
desc->ndesc = cpu_to_le32(mapping);
desc->vndescp = desc + 1;
desc++;