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)
commit9c7661c30c3fd1a751934ce2d8b373c85c964340
tree39487832062cb5d504a806fc0f693051367af967
parenta42ec9d487c5489929da2b1fdcf5fac1384362f6
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