diff options
Diffstat (limited to 'mm/shmem.c')
-rw-r--r-- | mm/shmem.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/mm/shmem.c b/mm/shmem.c index ed2befb4952e..1c44af71fcf5 100644 --- a/mm/shmem.c +++ b/mm/shmem.c | |||
@@ -2932,9 +2932,8 @@ struct file *shmem_file_setup(const char *name, loff_t size, unsigned long flags | |||
2932 | inode->i_size = size; | 2932 | inode->i_size = size; |
2933 | clear_nlink(inode); /* It is unlinked */ | 2933 | clear_nlink(inode); /* It is unlinked */ |
2934 | #ifndef CONFIG_MMU | 2934 | #ifndef CONFIG_MMU |
2935 | error = ramfs_nommu_expand_for_mapping(inode, size); | 2935 | res = ERR_PTR(ramfs_nommu_expand_for_mapping(inode, size)); |
2936 | res = ERR_PTR(error); | 2936 | if (IS_ERR(res)) |
2937 | if (error) | ||
2938 | goto put_dentry; | 2937 | goto put_dentry; |
2939 | #endif | 2938 | #endif |
2940 | 2939 | ||