staging: wfx: remove useless debug statement
authorJérôme Pouiller <jerome.pouiller@silabs.com>
Mon, 13 Sep 2021 13:01:53 +0000 (15:01 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Sep 2021 07:16:33 +0000 (09:16 +0200)
In the early age, it was unexpected to access a VIF that did not exist.
With current code, this happens frequently. Having a trace associated on
this event brings absolutely no informations.

Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
Link: https://lore.kernel.org/r/20210913130203.1903622-23-Jerome.Pouiller@silabs.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wfx/wfx.h

index 56f1e4b..a8efa25 100644 (file)
@@ -99,11 +99,8 @@ static inline struct wfx_vif *wdev_to_wvif(struct wfx_dev *wdev, int vif_id)
                return NULL;
        }
        vif_id = array_index_nospec(vif_id, ARRAY_SIZE(wdev->vif));
-       if (!wdev->vif[vif_id]) {
-               dev_dbg(wdev->dev, "requesting non-allocated vif: %d\n",
-                       vif_id);
+       if (!wdev->vif[vif_id])
                return NULL;
-       }
        return (struct wfx_vif *) wdev->vif[vif_id]->drv_priv;
 }