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:
committed by
David S. Miller
parent
09da71b121
commit
3ad9b358e0
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user