Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d287c502 authored by Gustavo A. R. Silva's avatar Gustavo A. R. Silva Committed by David S. Miller
Browse files

isdn: mark expected switch fall-throughs



In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.

Warning level 2 was used: -Wimplicit-fallthrough=2

Signed-off-by: default avatarGustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 03fc5d4f
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -739,6 +739,7 @@ static void read_int_callback(struct urb *urb)

	case HD_OPEN_B2CHANNEL_ACK:
		++channel;
		/* fall through */
	case HD_OPEN_B1CHANNEL_ACK:
		bcs = cs->bcs + channel;
		update_basstate(ucs, BS_B1OPEN << channel, 0);
@@ -752,6 +753,7 @@ static void read_int_callback(struct urb *urb)

	case HD_CLOSE_B2CHANNEL_ACK:
		++channel;
		/* fall through */
	case HD_CLOSE_B1CHANNEL_ACK:
		bcs = cs->bcs + channel;
		update_basstate(ucs, 0, BS_B1OPEN << channel);
@@ -765,6 +767,7 @@ static void read_int_callback(struct urb *urb)

	case HD_B2_FLOW_CONTROL:
		++channel;
		/* fall through */
	case HD_B1_FLOW_CONTROL:
		bcs = cs->bcs + channel;
		atomic_add((l - BAS_NORMFRAME) * BAS_CORRFRAMES,
+1 −0
Original line number Diff line number Diff line
@@ -361,6 +361,7 @@ modehdlc(struct bchannel *bch, int protocol)
	switch (protocol) {
	case -1: /* used for init */
		bch->state = -1;
		/* fall through */
	case ISDN_P_NONE:
		if (bch->state == ISDN_P_NONE)
			break;
+1 −0
Original line number Diff line number Diff line
@@ -1296,6 +1296,7 @@ mode_hfcpci(struct bchannel *bch, int bc, int protocol)
	case (-1): /* used for init */
		bch->state = -1;
		bch->nr = bc;
		/* fall through */
	case (ISDN_P_NONE):
		if (bch->state == ISDN_P_NONE)
			return 0;
+1 −0
Original line number Diff line number Diff line
@@ -887,6 +887,7 @@ release_card(struct inf_hw *card) {
				release_card(card->sc[i]);
			card->sc[i] = NULL;
		}
		/* fall through */
	default:
		pci_disable_device(card->pdev);
		pci_set_drvdata(card->pdev, NULL);
+4 −0
Original line number Diff line number Diff line
@@ -972,6 +972,7 @@ isar_pump_statev_fax(struct isar_ch *ch, u8 devt) {
				break;
			case PCTRL_CMD_FTM:
				p1 = 2;
				/* fall through */
			case PCTRL_CMD_FTH:
				send_mbox(ch->is, dps | ISAR_HIS_PUMPCTRL,
					  PCTRL_CMD_SILON, 1, &p1);
@@ -1177,6 +1178,7 @@ setup_pump(struct isar_ch *ch) {
			send_mbox(ch->is, dps | ISAR_HIS_PUMPCFG,
				  PMOD_DTMF, 1, param);
		}
		/* fall through */
	case ISDN_P_B_MODEM_ASYNC:
		ctrl = PMOD_DATAMODEM;
		if (test_bit(FLG_ORIGIN, &ch->bch.Flags)) {
@@ -1268,6 +1270,7 @@ setup_iom2(struct isar_ch *ch) {
	case ISDN_P_B_MODEM_ASYNC:
	case ISDN_P_B_T30_FAX:
		cmsb |= IOM_CTRL_RCV;
		/* fall through */
	case ISDN_P_B_L2DTMF:
		if (test_bit(FLG_DTMFSEND, &ch->bch.Flags))
			cmsb |= IOM_CTRL_RCV;
@@ -1560,6 +1563,7 @@ isar_l2l1(struct mISDNchannel *ch, struct sk_buff *skb)
				ich->is->name, hh->id);
			ret = -EINVAL;
		}
		/* fall through */
	default:
		pr_info("%s: %s unknown prim(%x,%x)\n",
			ich->is->name, __func__, hh->prim, hh->id);
Loading