diff options
author | Tilman Schmidt <tilman@imap.cc> | 2006-04-11 01:55:11 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-04-11 09:18:50 -0400 |
commit | 01371500b245ae63f542d74140a3d8ccb74d0318 (patch) | |
tree | 8c758e86e3b6266c742b08111d53ac5bd21c0cbe /drivers/isdn/gigaset/interface.c | |
parent | 714e8236e5ea9d39169761c546274ceb7eeb765f (diff) |
[PATCH] isdn4linux: Siemens Gigaset drivers: eliminate from_user argument
With Hansjoerg Lipp <hjlipp@web.de>
Eliminate the from_user argument from a debugging function, thus easing the
job of sparse.
Signed-off-by: Hansjoerg Lipp <hjlipp@web.de>
Signed-off-by: Tilman Schmidt <tilman@imap.cc>
Cc: Karsten Keil <kkeil@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/isdn/gigaset/interface.c')
-rw-r--r-- | drivers/isdn/gigaset/interface.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/isdn/gigaset/interface.c b/drivers/isdn/gigaset/interface.c index f3dce8c4831b..25750864d206 100644 --- a/drivers/isdn/gigaset/interface.c +++ b/drivers/isdn/gigaset/interface.c | |||
@@ -246,8 +246,6 @@ static int if_ioctl(struct tty_struct *tty, struct file *file, | |||
246 | break; | 246 | break; |
247 | case GIGASET_BRKCHARS: | 247 | case GIGASET_BRKCHARS: |
248 | //FIXME test if MS_LOCKED | 248 | //FIXME test if MS_LOCKED |
249 | gigaset_dbg_buffer(DEBUG_IF, "GIGASET_BRKCHARS", | ||
250 | 6, (const unsigned char *) arg, 1); | ||
251 | if (!atomic_read(&cs->connected)) { | 249 | if (!atomic_read(&cs->connected)) { |
252 | gig_dbg(DEBUG_ANY, | 250 | gig_dbg(DEBUG_ANY, |
253 | "can't communicate with unplugged device"); | 251 | "can't communicate with unplugged device"); |
@@ -257,8 +255,11 @@ static int if_ioctl(struct tty_struct *tty, struct file *file, | |||
257 | retval = copy_from_user(&buf, | 255 | retval = copy_from_user(&buf, |
258 | (const unsigned char __user *) arg, 6) | 256 | (const unsigned char __user *) arg, 6) |
259 | ? -EFAULT : 0; | 257 | ? -EFAULT : 0; |
260 | if (retval >= 0) | 258 | if (retval >= 0) { |
259 | gigaset_dbg_buffer(DEBUG_IF, "GIGASET_BRKCHARS", | ||
260 | 6, (const unsigned char *) arg); | ||
261 | retval = cs->ops->brkchars(cs, buf); | 261 | retval = cs->ops->brkchars(cs, buf); |
262 | } | ||
262 | break; | 263 | break; |
263 | case GIGASET_VERSION: | 264 | case GIGASET_VERSION: |
264 | retval = copy_from_user(version, | 265 | retval = copy_from_user(version, |