Skip to contentSkip to conversation

fix unused variable compiler warning

PATCH In review Li Zhong 2 participants 3 messages Aug 16, 2013

Subsystems (2)
lore
Share & tools
lore

Li Zhong

author
#0 lore raw

PATCH 1/1 fix unused variable compiler warning

fs/ext4/extents_status.c:950:6: warning: unused variable 'ret' [-Wunused-variable]

---
 fs/ext4/extents_status.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/ext4/extents_status.c +1 -1
index dc709e1..6708257 100644
@@ -947,7 +947,7 @@ static int __ext4_es_shrink(struct ext4_sb_info *sbi, int nr_to_scan,
 	struct ext4_inode_info *ei;
 	struct list_head *cur, *tmp;
 	LIST_HEAD(skipped);
-	int ret, nr_shrunk = 0;
+	int nr_shrunk = 0;
 	int retried = 0, skip_precached = 1, nr_skipped = 0;
 
 	spin_lock(&sbi->s_es_lru_lock);
#1 lore raw

Hi,

You should probably have cc'd the ext4 maintainers (cc'd).

Quoted 23 lines · On Fri, 16 Aug 2013 14:48:34 +0800 Li Zhong <[email protected]> wrote:

fs/ext4/extents_status.c:950:6: warning: unused variable 'ret' [-Wunused-variable]

---
 fs/ext4/extents_status.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/ext4/extents_status.c +1 -1
index dc709e1..6708257 100644
@@ -947,7 +947,7 @@ static int __ext4_es_shrink(struct ext4_sb_info *sbi, int nr_to_scan,
 	struct ext4_inode_info *ei;
 	struct list_head *cur, *tmp;
 	LIST_HEAD(skipped);
-	int ret, nr_shrunk = 0;
+	int nr_shrunk = 0;
 	int retried = 0, skip_precached = 1, nr_skipped = 0;
 
 	spin_lock(&sbi->s_es_lru_lock);
Signature · 2 lines
Cheers,
Stephen Rothwell                    [email protected]
#2 lore raw

Hi,

Quoted 2 lines · On Fri, 16 Aug 2013 17:19:32 +1000 Stephen Rothwell <[email protected]>…

You should probably have cc'd the ext4 maintainers (cc'd).

And I should probably check my own tree :-)

Andrew already has a patch that does this.

Signature · 2 lines
Cheers,
Stephen Rothwell                    [email protected]