From fec0401efdb928f7efec0449da844ccebeea7796 Mon Sep 17 00:00:00 2001 From: Rajeev Kumar Date: Fri, 10 Jun 2016 14:27:46 -0700 Subject: [PATCH] qcacmn: Remove redundant null check for wmi_handle In WMI detach caller routine already has null check for wmi_handle so remove redundant null check. Change-Id: I764a91a6050ffc93613b82008f5df2529a056e70 CRs-Fixed: 1027177 --- wmi_unified.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/wmi_unified.c b/wmi_unified.c index c3473e64e3..a32259f384 100644 --- a/wmi_unified.c +++ b/wmi_unified.c @@ -2203,10 +2203,8 @@ void wmi_unified_detach(struct wmi_unified *wmi_handle) qdf_spin_unlock_bh(&wmi_handle->eventq_lock); qdf_spinlock_destroy(&wmi_handle->eventq_lock); qdf_spinlock_destroy(&wmi_handle->ctx_lock); - if (wmi_handle != NULL) { - OS_FREE(wmi_handle); - wmi_handle = NULL; - } + OS_FREE(wmi_handle); + wmi_handle = NULL; } /**