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>
This commit is contained in:
Michał Mirosław
2011-11-16 14:05:33 +00:00
committed by David S. Miller
parent 09da71b121
commit 3ad9b358e0
4 changed files with 6 additions and 6 deletions

View File

@@ -201,9 +201,9 @@ static void xennet_sysfs_delif(struct net_device *netdev);
#define xennet_sysfs_delif(dev) do { } while (0)
#endif
static int xennet_can_sg(struct net_device *dev)
static bool xennet_can_sg(struct net_device *dev)
{
return !!(dev->features & NETIF_F_SG);
return dev->features & NETIF_F_SG;
}