mISDN: positive error return should be negative in mode_hfcmulti()
PATCH 1/1 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 <[email protected]>
---
drivers/isdn/hardware/mISDN/hfcmulti.c +1 -1
@@ -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;
David Miller
AppliedFrom: Roel Kluin <[email protected]>
Date: Fri, 29 Jan 2010 10:57:20 +0100
Quoted 4 lines
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 <[email protected]>
Applied.