diff options
author | Alan Cox <alan@lxorguk.ukuu.org.uk> | 2006-10-03 04:13:55 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-03 11:03:41 -0400 |
commit | 17a4506d0eb1f78c9018c06a79e7dd09ae78c3a8 (patch) | |
tree | 6d0721b3570cc189300f3c7035d12cfa634183f5 /drivers/isdn/hisax/st5481_d.c | |
parent | 31e7e1a806dab5e8e218b78e1b41887a4f6dfcc0 (diff) |
[PATCH] ISDN warning fixes
Clean up warnings in drivers/isdn by using long not int for the values
where we pass void * and cast to integer types. The code is ok (ok passing
the stuff this way isn't pretty but the code is valid). In all the cases I
checked out the right thing happens anyway but this removes all the
warnings.
Signed-off-by: Alan Cox <alan@redhat.com>
Cc: Jeff Garzik <jeff@garzik.org>
Acked-by: 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/hisax/st5481_d.c')
-rw-r--r-- | drivers/isdn/hisax/st5481_d.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/isdn/hisax/st5481_d.c b/drivers/isdn/hisax/st5481_d.c index 493dc94992e5..98adec440590 100644 --- a/drivers/isdn/hisax/st5481_d.c +++ b/drivers/isdn/hisax/st5481_d.c | |||
@@ -374,7 +374,7 @@ static void usb_d_out_complete(struct urb *urb, struct pt_regs *regs) | |||
374 | { | 374 | { |
375 | struct st5481_adapter *adapter = urb->context; | 375 | struct st5481_adapter *adapter = urb->context; |
376 | struct st5481_d_out *d_out = &adapter->d_out; | 376 | struct st5481_d_out *d_out = &adapter->d_out; |
377 | int buf_nr; | 377 | long buf_nr; |
378 | 378 | ||
379 | DBG(2, ""); | 379 | DBG(2, ""); |
380 | 380 | ||
@@ -546,7 +546,7 @@ static void dout_reseted(struct FsmInst *fsm, int event, void *arg) | |||
546 | static void dout_complete(struct FsmInst *fsm, int event, void *arg) | 546 | static void dout_complete(struct FsmInst *fsm, int event, void *arg) |
547 | { | 547 | { |
548 | struct st5481_adapter *adapter = fsm->userdata; | 548 | struct st5481_adapter *adapter = fsm->userdata; |
549 | int buf_nr = (int) arg; | 549 | long buf_nr = (long) arg; |
550 | 550 | ||
551 | usb_d_out(adapter, buf_nr); | 551 | usb_d_out(adapter, buf_nr); |
552 | } | 552 | } |