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: Gustavo A. R. Silva <gustavo@embeddedor.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committato da
David S. Miller

parent
03fc5d4ffb
commit
d287c50243
@@ -108,6 +108,7 @@ ReadISAC(struct IsdnCardState *cs, u_char offset)
|
||||
switch (cs->subtyp) {
|
||||
case R647:
|
||||
off2 = ((off2 << 8 & 0xf000) | (off2 & 0xf));
|
||||
/* fall through */
|
||||
case R685:
|
||||
return (readreg(cs->hw.gazel.isac, off2));
|
||||
case R753:
|
||||
@@ -125,6 +126,7 @@ WriteISAC(struct IsdnCardState *cs, u_char offset, u_char value)
|
||||
switch (cs->subtyp) {
|
||||
case R647:
|
||||
off2 = ((off2 << 8 & 0xf000) | (off2 & 0xf));
|
||||
/* fall through */
|
||||
case R685:
|
||||
writereg(cs->hw.gazel.isac, off2, value);
|
||||
break;
|
||||
@@ -203,6 +205,7 @@ ReadHSCX(struct IsdnCardState *cs, int hscx, u_char offset)
|
||||
switch (cs->subtyp) {
|
||||
case R647:
|
||||
off2 = ((off2 << 8 & 0xf000) | (off2 & 0xf));
|
||||
/* fall through */
|
||||
case R685:
|
||||
return (readreg(cs->hw.gazel.hscx[hscx], off2));
|
||||
case R753:
|
||||
@@ -220,6 +223,7 @@ WriteHSCX(struct IsdnCardState *cs, int hscx, u_char offset, u_char value)
|
||||
switch (cs->subtyp) {
|
||||
case R647:
|
||||
off2 = ((off2 << 8 & 0xf000) | (off2 & 0xf));
|
||||
/* fall through */
|
||||
case R685:
|
||||
writereg(cs->hw.gazel.hscx[hscx], off2, value);
|
||||
break;
|
||||
|
Fai riferimento in un nuovo problema
Block a user