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:
Родитель
e66dd19092
Коммит
11ff5f6aff
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче