]> Pileus Git - ~andy/linux/blobdiff - drivers/staging/wlan-ng/hfa384x_usb.c
staging: wlan-ng: Remove NULL check before kfree
[~andy/linux] / drivers / staging / wlan-ng / hfa384x_usb.c
index a6efc033fe10b41895768509a2b5603bae104c98..7843dfdaa3cf69cb348d006f0382cbc4409da42c 100644 (file)
@@ -612,10 +612,8 @@ void hfa384x_destroy(hfa384x_t *hw)
                hfa384x_drvr_stop(hw);
        hw->state = HFA384x_STATE_PREINIT;
 
-       if (hw->scanresults) {
-               kfree(hw->scanresults);
-               hw->scanresults = NULL;
-       }
+       kfree(hw->scanresults);
+       hw->scanresults = NULL;
 
        /* Now to clean out the auth queue */
        while ((skb = skb_dequeue(&hw->authq)))