Skip to content

Commit 650b2ef

Browse files
RoelKluindavem330
authored andcommitted
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]> Cc: Karsten Keil <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 3e59817 commit 650b2ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/isdn/hardware/mISDN/hfcmulti.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2846,7 +2846,7 @@ mode_hfcmulti(struct hfc_multi *hc, int ch, int protocol, int slot_tx,
28462846
int conf;
28472847

28482848
if (ch < 0 || ch > 31)
2849-
return EINVAL;
2849+
return -EINVAL;
28502850
oslot_tx = hc->chan[ch].slot_tx;
28512851
oslot_rx = hc->chan[ch].slot_rx;
28522852
conf = hc->chan[ch].conf;

0 commit comments

Comments
 (0)