Jelajahi Sumber

qcacld-3.0: Remove unnecessary NULL pointer check

Remove unnecessary NULL pointer check which is already done
in the caller.

Change-Id: I1facd599b78c3f5d4c2c1ed6f6591a12560d4508
CRs-Fixed: 2749441
Min Liu 4 tahun lalu
induk
melakukan
ed37571ba9
1 mengubah file dengan 0 tambahan dan 5 penghapusan
  1. 0 5
      core/hdd/src/wlan_hdd_main.c

+ 0 - 5
core/hdd/src/wlan_hdd_main.c

@@ -5782,11 +5782,6 @@ static int hdd_send_coex_config_params(struct hdd_context *hdd_ctx,
 	uint8_t btc_chain_mode;
 	QDF_STATUS status;
 
-	if (!hdd_ctx) {
-		hdd_err("hdd_ctx is invalid");
-		goto err;
-	}
-
 	if (!adapter) {
 		hdd_err("adapter is invalid");
 		goto err;