Browse Source

qcacmn: cfg: Replace fallthrough comment with attribute

-Wimplicit-fallthrough is being enabled by default. Some compilers
such as clang require the attribute instead of just a fallthrough comment.

Change-Id: I35cf752c724368243fa954ef982e7a3b426db54f
CRs-Fixed: 3218238
David Oladunjoye 3 years ago
parent
commit
b118e31770
1 changed files with 2 additions and 2 deletions
  1. 2 2
      cfg/src/cfg.c

+ 2 - 2
cfg/src/cfg.c

@@ -131,7 +131,7 @@ cfg_int_item_handler(struct cfg_value_store *store,
 	default:
 		QDF_DEBUG_PANIC("Unknown fallback method %d for cfg item '%s'",
 				meta->fallback, meta->name);
-		/* fall through */
+		fallthrough;
 	case CFG_VALUE_OR_DEFAULT:
 		/* store already contains default */
 		break;
@@ -185,7 +185,7 @@ cfg_uint_item_handler(struct cfg_value_store *store,
 	default:
 		QDF_DEBUG_PANIC("Unknown fallback method %d for cfg item '%s'",
 				meta->fallback, meta->name);
-		/* fall through */
+		fallthrough;
 	case CFG_VALUE_OR_DEFAULT:
 		/* store already contains default */
 		break;