mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
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;
|
struct net_device *dev;
|
||||||
int ret = -ENODEV;
|
int ret = -ENODEV;
|
||||||
|
|
||||||
if (maclen != ETH_ALEN)
|
BUG_ON(maclen != ETH_ALEN);
|
||||||
BUG();
|
|
||||||
|
|
||||||
rtnl_lock();
|
rtnl_lock();
|
||||||
dev = __dev_getfirstbyhwtype(&init_net, ARPHRD_ETHER);
|
dev = __dev_getfirstbyhwtype(&init_net, ARPHRD_ETHER);
|
||||||
|
|
Loading…
Reference in a new issue