From: Stoyan Gaydarov Date: Thu, 9 Apr 2009 16:10:28 +0000 (+0100) Subject: afs: BUG to BUG_ON changes X-Git-Tag: v2.6.30-rc2~98 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=11ff5f6affe9b75f115a900a5584db339d46002b;p=~emulex%2Finfiniband.git afs: BUG to BUG_ON changes Signed-off-by: Stoyan Gaydarov Signed-off-by: David Howells Signed-off-by: Linus Torvalds --- diff --git a/fs/afs/netdevices.c b/fs/afs/netdevices.c index 49f18942306..7ad36506c25 100644 --- a/fs/afs/netdevices.c +++ b/fs/afs/netdevices.c @@ -20,8 +20,7 @@ int afs_get_MAC_address(u8 *mac, size_t maclen) struct net_device *dev; int ret = -ENODEV; - if (maclen != ETH_ALEN) - BUG(); + BUG_ON(maclen != ETH_ALEN); rtnl_lock(); dev = __dev_getfirstbyhwtype(&init_net, ARPHRD_ETHER);