afs: BUG to BUG_ON changes
Signed-off-by: Stoyan Gaydarov <stoyboyker@gmail.com> Signed-off-by: David Howells <dhowells@redhat.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
e66dd19092
commit
11ff5f6aff
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue