staging/wlan-ng/hfa384x: Delete an unnecessary check before the macro call “dev_kfree_skb”
Subsystems (2)
PATCH 1/1 staging/wlan-ng/hfa384x: Delete an unnecessary check before the macro call “dev_kfree_skb”
From: Markus Elfring <[email protected]>
Date: Wed, 21 Aug 2019 14:30:30 +0200
The dev_kfree_skb() function performs also input parameter validation. Thus the test around the call is not needed.
This issue was detected by using the Coccinelle software.
Signed-off-by Markus Elfring <[email protected]>
--- drivers/staging/wlan-ng/hfa384x_usb.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/staging/wlan-ng/hfa384x_usb.c +1 -3
@@ -3070,9 +3070,7 @@ static void hfa384x_usbin_callback(struct urb *urb) }/* switch */ exit: - -if (skb) -dev_kfree_skb (skb); +dev_kfree_skb (skb); }/*----------------------------------------------------------------
--
2.23.0