Commit 650b2ef5 authored by Roel Kluin's avatar Roel Kluin Committed by David S. Miller

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: default avatarRoel Kluin <roel.kluin@gmail.com>
Cc: Karsten Keil <isdn@linux-pingi.de>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 3e598177
...@@ -2846,7 +2846,7 @@ mode_hfcmulti(struct hfc_multi *hc, int ch, int protocol, int slot_tx, ...@@ -2846,7 +2846,7 @@ mode_hfcmulti(struct hfc_multi *hc, int ch, int protocol, int slot_tx,
int conf; int conf;
if (ch < 0 || ch > 31) if (ch < 0 || ch > 31)
return EINVAL; return -EINVAL;
oslot_tx = hc->chan[ch].slot_tx; oslot_tx = hc->chan[ch].slot_tx;
oslot_rx = hc->chan[ch].slot_rx; oslot_rx = hc->chan[ch].slot_rx;
conf = hc->chan[ch].conf; conf = hc->chan[ch].conf;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment