staging: rtl8188eu: remove all DBG_88E calls from os_dep/xmit_linux.c
authorPhillip Potter <phil@philpotter.co.uk>
Tue, 15 Jun 2021 00:14:54 +0000 (01:14 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 15 Jun 2021 11:56:11 +0000 (13:56 +0200)
Remove all DBG_88E calls from os_dep/xmit_linux.c as this macro is
unnecessary, and many of these calls are dubious in terms of necessity.
Removing all calls will ultimately allow the removal of the macro
itself.

Signed-off-by: Phillip Potter <phil@philpotter.co.uk>
Link: https://lore.kernel.org/r/20210615001507.1171-16-phil@philpotter.co.uk
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/os_dep/xmit_linux.c

index 6935bdb..c73f946 100644 (file)
@@ -26,10 +26,8 @@ int rtw_os_xmit_resource_alloc(struct xmit_buf *pxmitbuf, u32 alloc_sz)
 
        for (i = 0; i < 8; i++) {
                pxmitbuf->pxmit_urb[i] = usb_alloc_urb(0, GFP_KERNEL);
-               if (!pxmitbuf->pxmit_urb[i]) {
-                       DBG_88E("pxmitbuf->pxmit_urb[i]==NULL");
+               if (!pxmitbuf->pxmit_urb[i])
                        return _FAIL;
-               }
        }
        return _SUCCESS;
 }
@@ -132,16 +130,12 @@ static int rtw_mlcst2unicst(struct adapter *padapter, struct sk_buff *skb)
                        memcpy(newskb->data, psta->hwaddr, 6);
                        res = rtw_xmit(padapter, &newskb);
                        if (res < 0) {
-                               DBG_88E("%s()-%d: rtw_xmit() return error!\n",
-                                       __func__, __LINE__);
                                pxmitpriv->tx_drop++;
                                dev_kfree_skb_any(newskb);
                        } else {
                                pxmitpriv->tx_pkts++;
                        }
                } else {
-                       DBG_88E("%s-%d: skb_copy() failed!\n",
-                               __func__, __LINE__);
                        pxmitpriv->tx_drop++;
 
                        spin_unlock_bh(&pstapriv->asoc_list_lock);