ravb: kill redundant check in the probe() method
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Sun, 31 Dec 2017 18:41:35 +0000 (21:41 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 3 Jan 2018 15:21:35 +0000 (10:21 -0500)
commit5d0c100c228b51ce2c14bdbc845ca446e0494689
tree23a90565862864773f59254f98068b2df5e8f99e
parent72bca2084a21edda74b802bc076083d5951f67b4
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>
drivers/net/ethernet/renesas/ravb_main.c