OSDN Git Service

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)
commit2b2706aaaefee49ba0030bc679865db178e89e11
tree39487832062cb5d504a806fc0f693051367af967
parente6b6be53ec91461c5ecf41a66f54f5869fd989b9
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