Re: [PATCH] net: faraday: ftmac100: Use BUG_ON instead of if condition followed by BUG.

2017-10-27 Thread David Miller
From: "Gustavo A. R. Silva" Date: Thu, 26 Oct 2017 07:27:45 -0500 > 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 Applied.

[PATCH] net: faraday: ftmac100: Use BUG_ON instead of if condition followed by BUG.

2017-10-26 Thread Gustavo A. R. Silva
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 --- drivers/net/ethernet/faraday/ftmac100.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git