Explorar o código

qcacld-3.0: sme: 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: I3ec9817325ce44702b932b100af312f84dad5d66
CRs-Fixed: 3217420
David Oladunjoye %!s(int64=2) %!d(string=hai) anos
pai
achega
be252149e4
Modificáronse 1 ficheiros con 6 adicións e 6 borrados
  1. 6 6
      core/sme/src/qos/sme_qos.c

+ 6 - 6
core/sme/src/qos/sme_qos.c

@@ -4554,7 +4554,7 @@ static QDF_STATUS sme_qos_process_handoff_assoc_req_ev(struct mac_context *mac,
 				sme_debug("SME_QOS_CSR_HANDOFF_ASSOC_REQ received in SME_QOS_HANDOFF state with FT in progress");
 				break;
 			}
-			/* fallthrough */
+			fallthrough;
 		case SME_QOS_CLOSED:
 		case SME_QOS_INIT:
 		default:
@@ -6324,7 +6324,7 @@ sme_qos_reassoc_success_ev_fnp(struct mac_context *mac_ctx,
 		break;
 	case SME_QOS_REASON_RELEASE:
 		ac_info->num_flows[SME_QOS_TSPEC_INDEX_0]--;
-	/* fall through */
+		fallthrough;
 	case SME_QOS_REASON_MODIFY:
 		delete_entry = true;
 		break;
@@ -6354,7 +6354,7 @@ sme_qos_reassoc_success_ev_fnp(struct mac_context *mac_ctx,
 		break;
 	case SME_QOS_REASON_REQ_SUCCESS:
 		hdd_status = SME_QOS_STATUS_SETUP_MODIFIED_IND;
-	/* fall through */
+		fallthrough;
 	default:
 		delete_entry = false;
 		break;
@@ -6428,9 +6428,9 @@ static QDF_STATUS sme_qos_add_ts_failure_fnp(struct mac_context *mac, tListElem
 		break;
 	case SME_QOS_REASON_MODIFY:
 		flow_info->reason = SME_QOS_REASON_REQ_SUCCESS;
-		/* fallthrough */
+		fallthrough;
 	case SME_QOS_REASON_REQ_SUCCESS:
-		/* fallthrough */
+		fallthrough;
 	default:
 		inform_hdd = false;
 		break;
@@ -6605,7 +6605,7 @@ static QDF_STATUS sme_qos_add_ts_success_fnp(struct mac_context *mac_ctx,
 	case SME_QOS_REASON_REQ_SUCCESS:
 		hdd_status = SME_QOS_STATUS_SETUP_MODIFIED_IND;
 		inform_hdd = true;
-	/* fallthrough */
+		fallthrough;
 	default:
 		delete_entry = false;
 		break;