Accumulate hdev->stat.byte_rx only for valid packets as btmtkuart doing.
Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
if (err < 0)
goto err_kfree_skb;
- bdev->hdev->stat.byte_rx += rx_size;
-
sdio_hdr = (void *)skb->data;
/* We assume the default error as -EILSEQ simply to make the error path
/* Complete frame */
(&pkts[i])->recv(bdev->hdev, skb);
+ bdev->hdev->stat.byte_rx += rx_size;
+
return 0;
err_kfree_skb: