mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 04:01:48 -04:00
mm: shmem: remove unused info variable
Fix the following warning by removing the unused variable: mm/shmem.c:3205:27: warning: variable 'info' set but not used [-Wunused-but-set-variable] Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Corentin Labbe <[email protected]> Acked-by: Michal Hocko <[email protected]> Cc: Hugh Dickins <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
3aaabbf1c3
commit
09af5ccea2
1 changed files with 0 additions and 2 deletions
|
|
@ -3202,7 +3202,6 @@ static int shmem_symlink(struct inode *dir, struct dentry *dentry, const char *s
|
|||
int len;
|
||||
struct inode *inode;
|
||||
struct page *page;
|
||||
struct shmem_inode_info *info;
|
||||
|
||||
len = strlen(symname) + 1;
|
||||
if (len > PAGE_SIZE)
|
||||
|
|
@ -3222,7 +3221,6 @@ static int shmem_symlink(struct inode *dir, struct dentry *dentry, const char *s
|
|||
error = 0;
|
||||
}
|
||||
|
||||
info = SHMEM_I(inode);
|
||||
inode->i_size = len-1;
|
||||
if (len <= SHORT_SYMLINK_LEN) {
|
||||
inode->i_link = kmemdup(symname, len, GFP_KERNEL);
|
||||
|
|
|
|||
Loading…
Reference in a new issue