]> err.no Git - linux-2.6/blobdiff - fs/sysfs/inode.c
[PATCH] 9p: handle sget() failure
[linux-2.6] / fs / sysfs / inode.c
index 4c29ac41ac3ec050f9f680118df5ab5aadf5a12a..f0b347bd12ca52d6636b2cadae31a7f45f2067a7 100644 (file)
@@ -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: