diff options
author | Maxim Petrov <mmrmaximuzz@gmail.com> | 2020-05-04 09:26:43 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-05-04 10:33:53 -0700 |
commit | f42234ffd531ca6b13d9da02faa60b72eccf8334 (patch) | |
tree | 900040f116fccd53a8b938e11f845030d333ac87 /net | |
parent | 980d69276f3048af43a045be2925dacfb898a7be (diff) |
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: Maxim Petrov <mmrmaximuzz@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions