From 70e669633092f0d9af0a0511ab57650433b0ef8b Mon Sep 17 00:00:00 2001 From: Eric Sesterhenn Date: Sat, 1 Apr 2006 01:18:38 +0200 Subject: [PATCH] --- yaml --- r: 25193 b: refs/heads/master c: 99cee0cd7560fc4e7f3646ee18d90e328bd1cb32 h: refs/heads/master i: 25191: 213e8a3b31c906a128e6d87507e6be50e29e623d v: v3 --- [refs] | 2 +- trunk/fs/sysfs/inode.c | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index 8cceddba3bfc..76a9adfe02e0 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 5df0d312413d920628f149421d7b0a3994684620 +refs/heads/master: 99cee0cd7560fc4e7f3646ee18d90e328bd1cb32 diff --git a/trunk/fs/sysfs/inode.c b/trunk/fs/sysfs/inode.c index 4c29ac41ac3e..f0b347bd12ca 100644 --- a/trunk/fs/sysfs/inode.c +++ b/trunk/fs/sysfs/inode.c @@ -175,8 +175,7 @@ const unsigned char * sysfs_get_name(struct sysfs_dirent *sd) struct bin_attribute * bin_attr; struct sysfs_symlink * sl; - if (!sd || !sd->s_element) - BUG(); + BUG_ON(!sd || !sd->s_element); switch (sd->s_type) { case SYSFS_DIR: