diff options
author | Michał Mirosław <mirq-linux@rere.qmqm.pl> | 2011-11-16 09:05:33 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-11-16 23:12:20 -0500 |
commit | 3ad9b358e03fd9dbf6705721490c811b666b0fe2 (patch) | |
tree | 4fdb8fa7daee75ab9daffc9d4870afe1a6fd4a3b /drivers/net/xen-netfront.c | |
parent | 09da71b1212f900cca390d2bffc32b2ae4e4eee2 (diff) |
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/xen-netfront.c')
-rw-r--r-- | drivers/net/xen-netfront.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/xen-netfront.c b/drivers/net/xen-netfront.c index a6e379fbf377..4312db8cdeab 100644 --- a/drivers/net/xen-netfront.c +++ b/drivers/net/xen-netfront.c | |||
@@ -201,9 +201,9 @@ static void xennet_sysfs_delif(struct net_device *netdev); | |||
201 | #define xennet_sysfs_delif(dev) do { } while (0) | 201 | #define xennet_sysfs_delif(dev) do { } while (0) |
202 | #endif | 202 | #endif |
203 | 203 | ||
204 | static int xennet_can_sg(struct net_device *dev) | 204 | static bool xennet_can_sg(struct net_device *dev) |
205 | { | 205 | { |
206 | return !!(dev->features & NETIF_F_SG); | 206 | return dev->features & NETIF_F_SG; |
207 | } | 207 | } |
208 | 208 | ||
209 | 209 | ||