Jelajahi Sumber

qcacld-3.0: Fix Switch Case fallthrough compiler error

Adding fallthrough statement in switch case to
suppress compile time errors.

Change-Id: I948e87090dd68d2f5cf342e2115d672d2d772b6f
CRs-Fixed: 3079848
Nakul Kachhwaha 3 tahun lalu
induk
melakukan
aabf3d74ff
2 mengubah file dengan 3 tambahan dan 1 penghapusan
  1. 2 0
      core/bmi/src/ol_fw.c
  2. 1 1
      core/dp/txrx/ol_txrx.c

+ 2 - 0
core/bmi/src/ol_fw.c

@@ -1,5 +1,6 @@
 /*
  * Copyright (c) 2014-2021 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2021 Qualcomm Innovation Center, Inc. All rights reserved.
  *
  * Permission to use, copy, modify, and/or distribute this software for
  * any purpose with or without fee is hereby granted, provided that the
@@ -1046,6 +1047,7 @@ static QDF_STATUS ol_fw_populate_clk_settings(enum a_refclk_speed_t refclk,
 		clock_s->wlan_pll.outdiv = 0;
 		clock_s->pll_settling_time = 1024;
 		clock_s->refclk_hz = 0;
+		/* fallthrough */
 	default:
 		return QDF_STATUS_E_FAILURE;
 	}

+ 1 - 1
core/dp/txrx/ol_txrx.c

@@ -4247,7 +4247,7 @@ ol_txrx_fw_stats_handler(ol_txrx_pdev_handle pdev,
 				bytes = 0;
 				/* TO DO: specify how many bytes are present */
 				/* TO DO: add copying to the requestor's buf */
-
+				/* fallthrough */
 			case HTT_DBG_STATS_RX_REMOTE_RING_BUFFER_INFO:
 				bytes = sizeof(struct
 						rx_remote_buffer_mgmt_stats);