GCC 7.1.0 adds -Wimplicit-fallthrough if -Wextra is set.
In order to suppress the warning, a fallthrough comment
has to be added at the right place.
Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
break;
case AR9170_RX_STATUS_MPDU_SINGLE:
+ /* MPDU single has both */
mpdu_len -= sizeof(struct ar9170_rx_phystatus);
-
+ /* fall through */
case AR9170_RX_STATUS_MPDU_FIRST:
mpdu_len -= sizeof(struct ar9170_rx_head);
break;
switch (clock_) {
case AHB_20_22MHZ:
fw.ticks_per_usec >>= 1;
+ /* fall through */
case AHB_40MHZ_OSC:
+ /* fall through */
case AHB_40_44MHZ:
fw.ticks_per_usec >>= 1;
+ /* fall through */
case AHB_80_88MHZ:
break;
}
*/
break;
}
- /* otherwise fall through */
+ /* fall through */
default:
rx_filter |= CARL9170_RX_FILTER_CTL_OTHER;
break;
/* Disable Device */
andb(AR9170_USB_REG_DEVICE_ADDRESS,
(uint8_t) ~(AR9170_USB_DEVICE_ADDRESS_CONFIGURE));
+ /* fall through */
case 1:
fw.usb.config = config;