]> git.baikalelectronics.ru Git - kernel.git/commit
drivers/net/typhoon.c: delete double assignment
authorJulia Lawall <julia@diku.dk>
Tue, 26 Oct 2010 00:25:36 +0000 (00:25 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 27 Oct 2010 19:23:20 +0000 (12:23 -0700)
commitb2eab5e4d38ff87e1f6c5d3274422ab7a5cf8a4b
tree1bcfa9b90c9226fc04d12d5863c829858dd9466f
parentf66f126ce36aacdd05603a2e7a301f5ce947f6c9
drivers/net/typhoon.c: delete double assignment

Delete successive assignments to the same location.  The current definition
does not initialize the respRing structure, which has the same type as the
cmdRing structure, so initialize that one instead.

A simplified version of the semantic match that finds this problem is as
follows: (http://coccinelle.lip6.fr/)

// <smpl>
@@
expression i;
@@

*i = ...;
 i = ...;
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Acked-by: David Dillow <dave@thedillows.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/typhoon.c