From 6609dbbdddfc267aa10f9a6aab53f817e4d91986 Mon Sep 17 00:00:00 2001 From: chenguo Date: Wed, 7 Nov 2018 11:45:58 +0800 Subject: [PATCH] qcacmn: Remove an obsolete lock in host to target layer After gerrit#2176826, which the change ID is I615f0e4d6de150924b99b3444cebf00571ddc088, HTCCreditLock is removed from creation. However, the destroy of this lock is missed. Need to remove this obsolete lock completely. CRs-Fixed: 2345978 Change-Id: I4b67aa2a12befcd94a04a8a6acd43e31ae0b837f --- htc/htc.c | 1 - htc/htc_internal.h | 1 - 2 files changed, 2 deletions(-) diff --git a/htc/htc.c b/htc/htc.c index 42d5f2d86d..a62b02f4c8 100644 --- a/htc/htc.c +++ b/htc/htc.c @@ -192,7 +192,6 @@ static void htc_cleanup(HTC_TARGET *target) qdf_spinlock_destroy(&target->HTCLock); qdf_spinlock_destroy(&target->HTCRxLock); qdf_spinlock_destroy(&target->HTCTxLock); - qdf_spinlock_destroy(&target->HTCCreditLock); for (i = 0; i < ENDPOINT_MAX; i++) { endpoint = &target->endpoint[i]; qdf_spinlock_destroy(&endpoint->lookup_queue_lock); diff --git a/htc/htc_internal.h b/htc/htc_internal.h index b2dab9eba4..888ee68cb7 100644 --- a/htc/htc_internal.h +++ b/htc/htc_internal.h @@ -190,7 +190,6 @@ typedef struct _HTC_TARGET { qdf_spinlock_t HTCLock; qdf_spinlock_t HTCRxLock; qdf_spinlock_t HTCTxLock; - qdf_spinlock_t HTCCreditLock; uint32_t HTCStateFlags; void *host_handle; struct htc_init_info HTCInitInfo;