diff options
author | Corentin Labbe <clabbe@baylibre.com> | 2017-11-17 15:26:23 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-11-17 16:10:00 -0800 |
commit | 09af5ccea26d347041ac7ca37a61f859ef9bd1f5 (patch) | |
tree | 44149ff2cb6cab21e33e03cc2353ea2a0f25a9ce /mm | |
parent | 3aaabbf1c39effa2ac0c11103ed07ef03b0a0d89 (diff) | |
download | linux-stable-09af5ccea26d347041ac7ca37a61f859ef9bd1f5.tar.gz linux-stable-09af5ccea26d347041ac7ca37a61f859ef9bd1f5.tar.bz2 linux-stable-09af5ccea26d347041ac7ca37a61f859ef9bd1f5.zip |
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/1510774029-30652-1-git-send-email-clabbe@baylibre.com
Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
Acked-by: Michal Hocko <mhocko@suse.com>
Cc: Hugh Dickins <hughd@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/shmem.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/mm/shmem.c b/mm/shmem.c index 1f97d77551c3..4aa9307feab0 100644 --- a/mm/shmem.c +++ b/mm/shmem.c @@ -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); |