From 61984b392efa497b333d0aa74e35801027f1e95c Mon Sep 17 00:00:00 2001 From: fly1ngpengu1ns Date: Tue, 4 Apr 2023 02:53:09 +0000 Subject: [PATCH] Removed duplicate judgment for "queue==NULL" Signed-off-by: fly1ngpengu1ns --- model/network/wifi/platform/src/hdf_wlan_queue.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/model/network/wifi/platform/src/hdf_wlan_queue.c b/model/network/wifi/platform/src/hdf_wlan_queue.c index eb88be8..b2d1a45 100644 --- a/model/network/wifi/platform/src/hdf_wlan_queue.c +++ b/model/network/wifi/platform/src/hdf_wlan_queue.c @@ -80,9 +80,6 @@ void *PopQueue(HdfWlanQueue *queue) return NULL; } impl = (HdfWlanQueueImpl *)queue; - if (queue == NULL) { - return NULL; - } ret = OsalMutexLock(&impl->lock); if (ret != HDF_SUCCESS) { HDF_LOGE("%s:Get lock failed!ret=%d", __func__, ret); -- Gitee