From: Alexey Dobriyan Date: Tue, 21 Mar 2006 06:35:16 +0000 (-0800) Subject: [ATM] suni: cast arg properly in SONET_SETFRAMING X-Git-Tag: v2.6.17-rc1~1175^2~58 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6613f82dd293b23f582a649b287fadbf8d23e6cf;p=linux-2.6 [ATM] suni: cast arg properly in SONET_SETFRAMING Signed-off-by: Alexey Dobriyan Signed-off-by: Andrew Morton Signed-off-by: David S. Miller --- diff --git a/drivers/atm/suni.c b/drivers/atm/suni.c index 06817dec0c..b1d063cc4f 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) ?