aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/xen-netfront.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/xen-netfront.c')
-rw-r--r--drivers/net/xen-netfront.c4
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
204static int xennet_can_sg(struct net_device *dev) 204static 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