Skip to content
Commit f42234ff authored by Maxim Petrov's avatar Maxim Petrov Committed by David S. Miller
Browse files

stmmac: fix pointer check after utilization in stmmac_interrupt



The paranoidal pointer check in IRQ handler looks very strange - it
really protects us only against bogus drivers which request IRQ line
with null pointer dev_id. However, the code fragment is incorrect
because the dev pointer is used before the actual check which leads
to undefined behavior. Remove the check to avoid confusing people
with incorrect code.

Signed-off-by: default avatarMaxim Petrov <mmrmaximuzz@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 980d6927
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment