From ed37571ba903eaac3bff4d3e48abb838a19935d4 Mon Sep 17 00:00:00 2001 From: Min Liu Date: Thu, 6 Aug 2020 11:37:11 +0800 Subject: [PATCH] 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 --- core/hdd/src/wlan_hdd_main.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index c53b299a07869..0f12c068c15a8 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/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;