]> err.no Git - linux-2.6/blobdiff - fs/configfs/inode.c
[netdrvr] use dev_xxx() printk helpers, rather than dev_printk(KERN_xxx, ...
[linux-2.6] / fs / configfs / inode.c
index 737842f2764b5ce3b27fbc2fee53b91b6f06d7b9..e14488ca6411fef8db1fb86e1252f49b99f9b2a7 100644 (file)
@@ -38,7 +38,7 @@
 
 extern struct super_block * configfs_sb;
 
-static struct address_space_operations configfs_aops = {
+static const struct address_space_operations configfs_aops = {
        .readpage       = simple_readpage,
        .prepare_write  = simple_prepare_write,
        .commit_write   = simple_commit_write
@@ -196,8 +196,7 @@ const unsigned char * configfs_get_name(struct configfs_dirent *sd)
 {
        struct configfs_attribute *attr;
 
-       if (!sd || !sd->s_element)
-               BUG();
+       BUG_ON(!sd || !sd->s_element);
 
        /* These always have a dentry, so use that */
        if (sd->s_type & (CONFIGFS_DIR | CONFIGFS_ITEM_LINK))