net: dsa: mv88e6xxx: fix SERDES IRQ mapping
authorVivien Didelot <vivien.didelot@gmail.com>
Sat, 31 Aug 2019 20:18:28 +0000 (16:18 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sun, 1 Sep 2019 19:16:37 +0000 (12:16 -0700)
commitf441ed0f4c89c14dd68ce477f513bae43509237e
treec2486b220f260d3d1c960802e038f8ceba1c531c
parent946bc2509eb88ff0c64dd727a11c5a29b6bc2574
net: dsa: mv88e6xxx: fix SERDES IRQ mapping

The current mv88e6xxx SERDES code checks for negative error code from
irq_find_mapping, while this function returns an unsigned integer. This
patch removes this dead code and simply returns 0 is no IRQ is found.

Signed-off-by: Vivien Didelot <vivien.didelot@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx/chip.h
drivers/net/dsa/mv88e6xxx/serdes.c