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

The other code around these duplicated assignments initializes the 0 1 2
and 3 elements of an array, so change the initialization of the
rx_session_id array to do the same.

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>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/sb1000.c