Skip to contentSkip to conversation

mm: shmem: remove unused info variable

PATCH New [email protected] 1 participant 1 message Nov 17, 2017

Subsystems (2)
lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

PATCH 4/94 mm: shmem: remove unused info variable

From: Corentin Labbe <[email protected]>
Subject: 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]

---

 mm/shmem.c |    2 --
 1 file changed, 2 deletions(-)
mm/shmem.c renamed from mm/shmem.c~mm-shmem-remove-unused-info-variable +0 -2
diff -puN mm/shmem.c~mm-shmem-remove-unused-info-variable mm/shmem.c
@@ -3202,7 +3202,6 @@ static int shmem_symlink(struct inode *d
 	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 *d
 		error = 0;
 	}
 
-	info = SHMEM_I(inode);
 	inode->i_size = len-1;
 	if (len <= SHORT_SYMLINK_LEN) {
 		inode->i_link = kmemdup(symname, len, GFP_KERNEL);

_