drivers/net: Remove pointless checks for NULL prior to calling kfree()
[deliverable/linux.git] / drivers / net / e1000 / e1000_ethtool.c
index 6b9acc7f94a32e12770fc4a3946d0876c8a5af11..9c7feaeaa6a46b264473ced37a56e88402864089 100644 (file)
@@ -965,11 +965,8 @@ e1000_free_desc_rings(struct e1000_adapter *adapter)
        if(rxdr->desc)
                pci_free_consistent(pdev, rxdr->size, rxdr->desc, rxdr->dma);
 
-       if(txdr->buffer_info)
-               kfree(txdr->buffer_info);
-       if(rxdr->buffer_info)
-               kfree(rxdr->buffer_info);
-
+       kfree(txdr->buffer_info);
+       kfree(rxdr->buffer_info);
        return;
 }
 
This page took 0.0244 seconds and 5 git commands to generate.