]> git.baikalelectronics.ru Git - kernel.git/commit
lib8390: Replace panic() call with BUILD_BUG_ON
authorArmin Wolf <W_Armin@gmx.de>
Tue, 29 Sep 2020 17:13:26 +0000 (19:13 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 29 Sep 2020 21:04:09 +0000 (14:04 -0700)
commita28bfcdf02e1491fb950a4c1b3c76c06c4917bfb
tree39487832062cb5d504a806fc0f693051367af967
parent1dc77f171ae24b01a2a8041f6ef26c6b1f0eef64
lib8390: Replace panic() call with BUILD_BUG_ON

Replace panic() call in lib8390.c with BUILD_BUG_ON()
since checking the size of struct e8390_pkt_hdr should
happen at compile-time.

Signed-off-by: Armin Wolf <W_Armin@gmx.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/8390/lib8390.c