summaryrefslogtreecommitdiff
path: root/drivers/atm
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@gmail.com>2006-03-20 22:35:16 -0800
committerDavid S. Miller <davem@davemloft.net>2006-03-20 22:35:16 -0800
commit6613f82dd293b23f582a649b287fadbf8d23e6cf (patch)
tree23e90b674fc94c3f458c0f5b691b3e0ff7cebd58 /drivers/atm
parent471a24c0589cd192dcd2c6770ab6252cd42b1cff (diff)
downloadlinux-3.10-6613f82dd293b23f582a649b287fadbf8d23e6cf.tar.gz
linux-3.10-6613f82dd293b23f582a649b287fadbf8d23e6cf.tar.bz2
linux-3.10-6613f82dd293b23f582a649b287fadbf8d23e6cf.zip
[ATM] suni: cast arg properly in SONET_SETFRAMING
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/atm')
-rw-r--r--drivers/atm/suni.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/atm/suni.c b/drivers/atm/suni.c
index 06817dec0c2..b1d063cc4fb 100644
--- a/drivers/atm/suni.c
+++ b/drivers/atm/suni.c
@@ -188,7 +188,7 @@ static int suni_ioctl(struct atm_dev *dev,unsigned int cmd,void __user *arg)
case SONET_GETDIAG:
return get_diag(dev,arg);
case SONET_SETFRAMING:
- if (arg != SONET_FRAME_SONET) return -EINVAL;
+ if ((int)(unsigned long)arg != SONET_FRAME_SONET) return -EINVAL;
return 0;
case SONET_GETFRAMING:
return put_user(SONET_FRAME_SONET,(int __user *)arg) ?