qcacld-3.0: Remove QDF_BUG on vdev_id inside pmo_psoc_get_vdev

Currently, there is an assert condition inside function pmo_psoc_get_vdev
wherein if the vdev_id exceeds the maximum allowed value, a QDF_BUG is
triggered. This check is not necessary as a simple error check takes
care of the same situation.

Remove the assert condition from pmo_psoc_get_vdev

Change-Id: Icd4c892eca893de0f09c24e74407aba5e243f7bd
CRs-Fixed: 2497743
This commit is contained in:
Sourav Mohapatra 2019-07-17 11:30:34 +05:30 committed by nshrivas
parent 74e6092646
commit fd836a36bd

View File

@ -125,7 +125,6 @@ pmo_psoc_get_vdev(struct wlan_objmgr_psoc *psoc, uint8_t vdev_id)
{
struct wlan_objmgr_vdev *vdev;
QDF_BUG(vdev_id < WLAN_UMAC_PSOC_MAX_VDEVS);
if (vdev_id >= WLAN_UMAC_PSOC_MAX_VDEVS)
return NULL;