* [PATCH] Subject: [PATCH] [afs] BUG to BUG_ON changes
@ 2009-04-09 16:10 David Howells
0 siblings, 0 replies; only message in thread
From: David Howells @ 2009-04-09 16:10 UTC (permalink / raw)
To: torvalds, akpm; +Cc: linux-kernel, Stoyan Gaydarov, David Howells
From: Stoyan Gaydarov <stoyboyker@gmail.com>
Signed-off-by: Stoyan Gaydarov <stoyboyker@gmail.com>
Signed-off-by: David Howells <dhowells@redhat.com>
---
fs/afs/netdevices.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/fs/afs/netdevices.c b/fs/afs/netdevices.c
index 49f1894..7ad3650 100644
--- a/fs/afs/netdevices.c
+++ b/fs/afs/netdevices.c
@@ -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);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-04-09 16:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-09 16:10 [PATCH] Subject: [PATCH] [afs] BUG to BUG_ON changes David Howells
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®