mt76: usb: use dev_err_ratelimited instead of dev_err in mt76u_complete_rx
Subsystems (2)
[email protected]
maintainerPATCH 1/1 mt76: usb: use dev_err_ratelimited instead of dev_err in mt76u_complete_rx
In reply to a message not in the archiveFrom: Lorenzo Bianconi <[email protected]>
During device removal the driver can report multiple error messages. Use dev_err_ratelimited instead of dev_err to display urb errors
Signed-off-by Lorenzo Bianconi <[email protected]>
--- drivers/net/wireless/mediatek/mt76/usb.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/net/wireless/mediatek/mt76/usb.c +2 -1
@@ -446,7 +446,8 @@ static void mt76u_complete_rx(struct urb *urb)case -ENOENT :return ;default : -dev_err (dev->dev,"rx urb failed: %d\n" , urb->status); +dev_err_ratelimited (dev->dev,"rx urb failed: %d\n" , + urb->status);/* fall through */ case 0 :break ;
Signature · 1 line
2.20.1
Quoted 6 lines · On 2019-02-12 00:45, [email protected] wrote:
From: Lorenzo Bianconi <[email protected]>
During device removal the driver can report multiple error messages. Use
dev_err_ratelimitedinstead ofdev_errto display urb errorsSigned-off-by Lorenzo Bianconi <[email protected]>
Applied, thanks.
- Felix