ramips: mt7620: handle request_irq fail in gsw ethernet driver
authorChristian Marangi <ansuelsmth@gmail.com>
Sat, 6 May 2023 20:38:42 +0000 (22:38 +0200)
committerChristian Marangi <ansuelsmth@gmail.com>
Fri, 12 May 2023 01:15:37 +0000 (03:15 +0200)
commit7f54fa575b33d266f91f67dbb9a0c2c0af7aca7e
treefdf32e2a3197b99a7aced12bf9b3666b1cc3ac17
parentb545df5cfd4a8d4cb6656ac79a5cfc0eed9971c0
ramips: mt7620: handle request_irq fail in gsw ethernet driver

Handle return from request_irq in gsw ethernet driver.
Fix compilation warning:
drivers/net/ethernet/ralink/gsw_mt7620.c: In function 'mtk_gsw_init':
drivers/net/ethernet/ralink/gsw_mt7620.c:236:17: error: ignoring return value of 'request_irq' declared with attribute 'warn_unused_result' [-Werror=unused-result]
  236 |                 request_irq(gsw->irq, gsw_interrupt_mt7620, 0,
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  237 |                             "gsw", priv);
      |                             ~~~~~~~~~~~~
cc1: all warnings being treated as errors

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
target/linux/ramips/files/drivers/net/ethernet/ralink/gsw_mt7620.c