qcacmn: Verify id before removing idr

It causes kernel warning if remove an invalid id. So, verify id before
removing idr.

Change-Id: I22cd5753a6e4fae0087faaee1c722017523b311e
CRs-Fixed: 2271235
Bug: 111087746
Signed-off-by: Srinivas Girigowda <sgirigow@codeaurora.org>
diff --git a/qdf/linux/src/qdf_idr.c b/qdf/linux/src/qdf_idr.c
index e6c2b7f..9749083 100644
--- a/qdf/linux/src/qdf_idr.c
+++ b/qdf/linux/src/qdf_idr.c
@@ -116,7 +116,8 @@
 		return QDF_STATUS_E_INVAL;
 
 	qdf_spinlock_acquire(&idp->lock);
-	idr_remove(&idp->idr, id);
+	if (idr_find(&idp->idr, id))
+		idr_remove(&idp->idr, id);
 	qdf_spinlock_release(&idp->lock);
 
 	return QDF_STATUS_SUCCESS;