X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=fs%2Fsysfs%2Finode.c;h=f0b347bd12ca52d6636b2cadae31a7f45f2067a7;hb=00fbc6dfe7c4487f812829bff79c3121c8fd3bca;hp=4c29ac41ac3ec050f9f680118df5ab5aadf5a12a;hpb=1ebbe2b20091d306453a5cf480a87e6cd28ae76f;p=linux-2.6 diff --git a/fs/sysfs/inode.c b/fs/sysfs/inode.c index 4c29ac41ac..f0b347bd12 100644 --- a/fs/sysfs/inode.c +++ b/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: