archive mirror
 help / color / mirror / Atom feed
From: Alexey Dobriyan <>
To: Andrew Morton <>
Subject: [PATCH] suni: cast arg properly in SONET_SETFRAMING
Date: Wed, 25 Jan 2006 03:40:19 +0300	[thread overview]
Message-ID: <> (raw)

Signed-off-by: Alexey Dobriyan <>

 drivers/atm/suni.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/drivers/atm/suni.c
+++ b/drivers/atm/suni.c
@@ -188,7 +188,7 @@ static int suni_ioctl(struct atm_dev *de
 			return get_diag(dev,arg);
-			if (arg != SONET_FRAME_SONET) return -EINVAL;
+			if ((int)(unsigned long)arg != SONET_FRAME_SONET) return -EINVAL;
 			return 0;
 			return put_user(SONET_FRAME_SONET,(int __user *)arg) ?

                 reply	other threads:[~2006-01-25  0:22 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \ \
    --subject='Re: [PATCH] suni: cast arg properly in SONET_SETFRAMING' \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
on how to clone and mirror all data and code used for this inbox