mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
afs: BUG to BUG_ON changes
Signed-off-by: Stoyan Gaydarov <[email protected]> Signed-off-by: David Howells <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
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