mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-04 05:37:36 +00:00
ravb: kill redundant check in the probe() method
Browsing thru the driver disassembly, I noticed that gcc was able to figure out that the 'ndev' pointer is always non-NULL when calling free_netdev() on the probe() method's error path and thus skip that redundant NULL check... gcc is smart, be like gcc! :-) Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
72bca2084a
commit
5d0c100c22
1 changed files with 1 additions and 2 deletions
|
@ -2205,7 +2205,6 @@ out_dma_free:
|
|||
if (chip_id != RCAR_GEN2)
|
||||
ravb_ptp_stop(ndev);
|
||||
out_release:
|
||||
if (ndev)
|
||||
free_netdev(ndev);
|
||||
|
||||
pm_runtime_put(&pdev->dev);
|
||||
|
|
Loading…
Add table
Reference in a new issue