Re: [Xen-devel] [PATCH v2 2/3] drop pointless and add useful default cases

2016-07-04 Thread Andrew Cooper
On 04/07/16 12:55, Jan Beulich wrote: > There's no point in having default cases when all possible values have > respective case statements, or when there's just a "break" statement. > > Otoh the two main switch() statements better get default cases added, > just to cover the case of someone alteri

[Xen-devel] [PATCH v2 2/3] drop pointless and add useful default cases

2016-07-04 Thread Jan Beulich
There's no point in having default cases when all possible values have respective case statements, or when there's just a "break" statement. Otoh the two main switch() statements better get default cases added, just to cover the case of someone altering one of the two lookup arrays without suitabl