direct-io.hg

changeset 5557:678c1c052a5c

bitkeeper revision 1.1739 (42ba886dkLcSLF35FYJLZkKeANRJYg)

Trivial cleanup in netfront driver.
Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Thu Jun 23 10:01:17 2005 +0000 (2005-06-23)
parents 80b60ef3f553
children 1a568bb6c3bb
files linux-2.6.11-xen-sparse/drivers/xen/netfront/netfront.c
line diff
     1.1 --- a/linux-2.6.11-xen-sparse/drivers/xen/netfront/netfront.c	Thu Jun 23 09:58:18 2005 +0000
     1.2 +++ b/linux-2.6.11-xen-sparse/drivers/xen/netfront/netfront.c	Thu Jun 23 10:01:17 2005 +0000
     1.3 @@ -1343,7 +1343,7 @@ static int xennet_proc_read(
     1.4  {
     1.5      struct net_device *dev = (struct net_device *)((unsigned long)data & ~3UL);
     1.6      struct net_private *np = netdev_priv(dev);
     1.7 -    int len = 0, which_target = (unsigned long) data & 3;
     1.8 +    int len = 0, which_target = (long)data & 3;
     1.9      
    1.10      switch (which_target)
    1.11      {
    1.12 @@ -1368,7 +1368,7 @@ static int xennet_proc_write(
    1.13  {
    1.14      struct net_device *dev = (struct net_device *)((unsigned long)data & ~3UL);
    1.15      struct net_private *np = netdev_priv(dev);
    1.16 -    int which_target = (unsigned long) data & 3;
    1.17 +    int which_target = (long)data & 3;
    1.18      char string[64];
    1.19      long target;
    1.20