git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
mISDN: positive error return should be negative in mode_hfcmulti()
[safe/jmp/linux-2.6]
/
drivers
/
isdn
/
hardware
/
mISDN
/
hfcmulti.c
diff --git
a/drivers/isdn/hardware/mISDN/hfcmulti.c
b/drivers/isdn/hardware/mISDN/hfcmulti.c
index
1a1420d
..
ad36df9
100644
(file)
--- a/
drivers/isdn/hardware/mISDN/hfcmulti.c
+++ b/
drivers/isdn/hardware/mISDN/hfcmulti.c
@@
-2846,7
+2846,7
@@
mode_hfcmulti(struct hfc_multi *hc, int ch, int protocol, int slot_tx,
int conf;
if (ch < 0 || ch > 31)
- return EINVAL;
+ return
-
EINVAL;
oslot_tx = hc->chan[ch].slot_tx;
oslot_rx = hc->chan[ch].slot_rx;
conf = hc->chan[ch].conf;