aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/usb/core/inode.c5
-rw-r--r--fs/configfs/dir.c2
2 files changed, 3 insertions, 4 deletions
diff --git a/drivers/usb/core/inode.c b/drivers/usb/core/inode.c
index 0a4613df6c3..783fde7f44c 100644
--- a/drivers/usb/core/inode.c
+++ b/drivers/usb/core/inode.c
@@ -264,7 +264,7 @@ static int remount(struct super_block *sb, int *flags, char *data)
return -EINVAL;
}
- if (usbfs_mount && usbfs_mount->mnt_sb)
+ if (usbfs_mount)
update_sb(usbfs_mount->mnt_sb);
return 0;
@@ -500,9 +500,8 @@ static int fs_create_by_name (const char *name, mode_t mode,
* have around.
*/
if (!parent ) {
- if (usbfs_mount && usbfs_mount->mnt_sb) {
+ if (usbfs_mount)
parent = usbfs_mount->mnt_root;
- }
}
if (!parent) {
diff --git a/fs/configfs/dir.c b/fs/configfs/dir.c
index 36b1d7aadba..1c529691110 100644
--- a/fs/configfs/dir.c
+++ b/fs/configfs/dir.c
@@ -311,7 +311,7 @@ static int configfs_create_dir(struct config_item * item, struct dentry *dentry)
if (item->ci_parent)
parent = item->ci_parent->ci_dentry;
- else if (configfs_mount && configfs_mount->mnt_sb)
+ else if (configfs_mount)
parent = configfs_mount->mnt_root;
else
return -EFAULT;