Browse Source

qcacld-3.0: pmo: Replace fallthrough comment withattribute

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

Change-Id: If55d68cb76589b39b88d859ea4d9fa6e10246c7e
CRs-Fixed: 3217399
David Oladunjoye 2 years ago
parent
commit
5f4f7cf521

+ 1 - 1
components/pmo/core/src/wlan_pmo_static_config.c

@@ -64,7 +64,7 @@ void pmo_register_wow_wakeup_events(struct wlan_objmgr_vdev *vdev)
 					event_bitmap);
 		}
 
-	/* fallthrough */
+		fallthrough;
 	case QDF_P2P_DEVICE_MODE:
 	case QDF_OCB_MODE:
 	case QDF_MONITOR_MODE:

+ 2 - 2
components/pmo/core/src/wlan_pmo_suspend_resume.c

@@ -762,7 +762,7 @@ pmo_core_enable_wow_in_fw(struct wlan_objmgr_psoc *psoc,
 		pmo_err("Invalid interface pause setting: %d",
 			 wow_params->interface_pause);
 		/* intentional to default */
-		/* fallthrough */
+		fallthrough;
 	case PMO_WOW_INTERFACE_PAUSE_DEFAULT:
 		param.can_suspend_link =
 			htc_can_suspend_link(
@@ -780,7 +780,7 @@ pmo_core_enable_wow_in_fw(struct wlan_objmgr_psoc *psoc,
 	default:
 		pmo_err("Invalid resume trigger setting: %d",
 			 wow_params->resume_trigger);
-		/* intentional fall-through to default */
+		fallthrough;
 	case PMO_WOW_RESUME_TRIGGER_DEFAULT:
 	case PMO_WOW_RESUME_TRIGGER_GPIO:
 		/*