diff options
author | Michał Mirosław <mirq-linux@rere.qmqm.pl> | 2011-11-16 18:05:33 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-11-17 08:12:20 +0400 |
commit | 3ad9b358e03fd9dbf6705721490c811b666b0fe2 (patch) | |
tree | 4fdb8fa7daee75ab9daffc9d4870afe1a6fd4a3b /drivers/net/ethernet/marvell/sky2.c | |
parent | 09da71b1212f900cca390d2bffc32b2ae4e4eee2 (diff) | |
download | linux-3ad9b358e03fd9dbf6705721490c811b666b0fe2.tar.xz |
net: drivers: use bool type instead of double negation
Save some punctuation by using bool type's property equivalent to
doubled negation operator.
Reported-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/marvell/sky2.c')
-rw-r--r-- | drivers/net/ethernet/marvell/sky2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/marvell/sky2.c b/drivers/net/ethernet/marvell/sky2.c index c79dc5447658..7db6e36ec4f9 100644 --- a/drivers/net/ethernet/marvell/sky2.c +++ b/drivers/net/ethernet/marvell/sky2.c @@ -4313,7 +4313,7 @@ static int sky2_set_features(struct net_device *dev, netdev_features_t features) netdev_features_t changed = dev->features ^ features; if (changed & NETIF_F_RXCSUM) { - int on = !!(features & NETIF_F_RXCSUM); + bool on = features & NETIF_F_RXCSUM; sky2_write32(sky2->hw, Q_ADDR(rxqaddr[sky2->port], Q_CSR), on ? BMU_ENA_RX_CHKSUM : BMU_DIS_RX_CHKSUM); } |