]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
drivers/net/mlx4: Adjust constant
authorJulia Lawall <julia@diku.dk>
Sun, 19 Jul 2009 06:09:25 +0000 (06:09 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Jul 2009 20:00:46 +0000 (13:00 -0700)
commit86669530d966ca21f4245b9990e7ae188d433d1e
treee332cabb56598b3c370c3933abcdd032f560b1e2
parent0376d5b25ef11e9b6450ebae20781a32d8985170
drivers/net/mlx4: Adjust constant

The values in the advertising field are typically ADVERTISED_xxx, not
SUPPORTED_xxx.  Both SUPPORTED_10000baseT_Full and
ADVERTISED_1000baseT_Full have the same value.

The semantic match that finds this problem is as follows:
(http://www.emn.fr/x-info/coccinelle/)

// <smpl>
@@
struct ethtool_cmd E;
@@
*E.advertising = SUPPORTED_10000baseT_Full
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/mlx4/en_ethtool.c