mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-05-30 02:55:15 +00:00
net: cassini: Deletion of an unnecessary check before the function call "vfree"
The vfree() 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 <elfring@users.sourceforge.net> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
c4b2b9a849
commit
39af455daf
1 changed files with 1 additions and 2 deletions
|
@ -5179,8 +5179,7 @@ static void cas_remove_one(struct pci_dev *pdev)
|
|||
cp = netdev_priv(dev);
|
||||
unregister_netdev(dev);
|
||||
|
||||
if (cp->fw_data)
|
||||
vfree(cp->fw_data);
|
||||
vfree(cp->fw_data);
|
||||
|
||||
mutex_lock(&cp->pm_mutex);
|
||||
cancel_work_sync(&cp->reset_task);
|
||||
|
|
Loading…
Add table
Reference in a new issue