aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/usb/core/inode.c5
1 files changed, 2 insertions, 3 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)
264 return -EINVAL; 264 return -EINVAL;
265 } 265 }
266 266
267 if (usbfs_mount && usbfs_mount->mnt_sb) 267 if (usbfs_mount)
268 update_sb(usbfs_mount->mnt_sb); 268 update_sb(usbfs_mount->mnt_sb);
269 269
270 return 0; 270 return 0;
@@ -500,9 +500,8 @@ static int fs_create_by_name (const char *name, mode_t mode,
500 * have around. 500 * have around.
501 */ 501 */
502 if (!parent ) { 502 if (!parent ) {
503 if (usbfs_mount && usbfs_mount->mnt_sb) { 503 if (usbfs_mount)
504 parent = usbfs_mount->mnt_root; 504 parent = usbfs_mount->mnt_root;
505 }
506 } 505 }
507 506
508 if (!parent) { 507 if (!parent) {