diff options
author | Roel Kluin <roel.kluin@gmail.com> | 2010-02-02 07:43:47 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-02-03 23:16:48 -0500 |
commit | 650b2ef5d7f1378f65e6a313909d783e4b6477ed (patch) | |
tree | c8ad731b1e998aa45b6fcf7d61510cffcc461d01 /drivers/isdn/hardware/mISDN/hfcmulti.c | |
parent | 3e5981774755f2f967cd1d3f3898576cff20e565 (diff) |
mISDN: positive error return should be negative in mode_hfcmulti()
The error return should be negative. Its only caller that acts upon its
return, handle_bmsg(), transmits the positive error but can also return
negative errors.
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Cc: Karsten Keil <isdn@linux-pingi.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/isdn/hardware/mISDN/hfcmulti.c')
-rw-r--r-- | drivers/isdn/hardware/mISDN/hfcmulti.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/isdn/hardware/mISDN/hfcmulti.c b/drivers/isdn/hardware/mISDN/hfcmulti.c index 1a1420d7a828..ad36df9b759c 100644 --- 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, | |||
2846 | int conf; | 2846 | int conf; |
2847 | 2847 | ||
2848 | if (ch < 0 || ch > 31) | 2848 | if (ch < 0 || ch > 31) |
2849 | return EINVAL; | 2849 | return -EINVAL; |
2850 | oslot_tx = hc->chan[ch].slot_tx; | 2850 | oslot_tx = hc->chan[ch].slot_tx; |
2851 | oslot_rx = hc->chan[ch].slot_rx; | 2851 | oslot_rx = hc->chan[ch].slot_rx; |
2852 | conf = hc->chan[ch].conf; | 2852 | conf = hc->chan[ch].conf; |