net: faraday: ftmac100: Use BUG_ON instead of if condition followed by BUG.
authorGustavo A. R. Silva <garsilva@embeddedor.com>
Thu, 26 Oct 2017 12:27:45 +0000 (07:27 -0500)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Oct 2017 14:53:14 +0000 (23:53 +0900)
commit5bca178eed601cd4584c38c5290f7abbcacf3fb3
treea2137e458ad0b95ae6aaae1717306c85dfbe912c
parent4fa112f6b5fb055478e76f2b446673565d2ea35f
net: faraday: ftmac100: Use BUG_ON instead of if condition followed by BUG.

Notice that in this particular case unlikely() is already being called
inside BUG_ON macro.

This issue was detected with the help of Coccinelle.

Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/faraday/ftmac100.c