浏览代码

qcacmn: qdf: 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: Ib87c694224af8e1331d813b64e02dc4ec0c176d8
CRs-Fixed: 3218237
David Oladunjoye 3 年之前
父节点
当前提交
a163a49f31
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      qdf/src/qdf_parse.c

+ 2 - 2
qdf/src/qdf_parse.c

@@ -54,7 +54,7 @@ static QDF_STATUS qdf_ini_read_values(char **main_cursor,
 			case '\n':
 			case '\n':
 				*cursor = '\0';
 				*cursor = '\0';
 				cursor++;
 				cursor++;
-				/* fall through */
+				fallthrough;
 			case '\0':
 			case '\0':
 				eol = true;
 				eol = true;
 				break;
 				break;
@@ -79,7 +79,7 @@ static QDF_STATUS qdf_ini_read_values(char **main_cursor,
 				 */
 				 */
 				comment = true;
 				comment = true;
 				*cursor = '\0';
 				*cursor = '\0';
-				/* fall through */
+				fallthrough;
 			default:
 			default:
 				cursor++;
 				cursor++;
 				break;
 				break;