Skip to content

Commit

Permalink
afs: BUG to BUG_ON changes
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Stoyan Gaydarov authored and Linus Torvalds committed Apr 9, 2009
1 parent e66dd19 commit 11ff5f6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions fs/afs/netdevices.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 11ff5f6

Please sign in to comment.