Signed-off-by: Moritz Muehlenhoff <jmm@debian.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
if (nbss > 32)
nbss = 32;
- if (hw->scanresults)
- kfree(hw->scanresults);
+ kfree(hw->scanresults);
hw->scanresults = kmalloc(sizeof(hfa384x_InfFrame_t), GFP_ATOMIC);
memcpy(hw->scanresults, inf, sizeof(hfa384x_InfFrame_t));
if (!wlandev || !hw) {
printk(KERN_ERR "%s: Memory allocation failure.\n", dev_info);
- if (wlandev)
- kfree(wlandev);
- if (hw)
- kfree(hw);
+ kfree(wlandev);
+ kfree(hw);
return NULL;
}
goto done;
failed:
- if (wlandev)
- kfree(wlandev);
- if (hw)
- kfree(hw);
+ kfree(wlandev);
+ kfree(hw);
wlandev = NULL;
done: