+ fs-reiserfs-streec-remove-set-but-not-used-variables.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     Subject: fs/reiserfs/stree.c: remove set but not used variables
has been added to the -mm tree.  Its filename is
     fs-reiserfs-streec-remove-set-but-not-used-variables.patch

This patch should soon appear at
    http://ozlabs.org/~akpm/mmots/broken-out/fs-reiserfs-streec-remove-set-but-not-used-variables.patch
and later at
    http://ozlabs.org/~akpm/mmotm/broken-out/fs-reiserfs-streec-remove-set-but-not-used-variables.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

------------------------------------------------------
From: zhengbin <zhengbin13@xxxxxxxxxx>
Subject: fs/reiserfs/stree.c: remove set but not used variables

Fixes gcc '-Wunused-but-set-variable' warning:

fs/reiserfs/stree.c: In function search_by_key:
fs/reiserfs/stree.c:596:6: warning: variable right_neighbor_of_leaf_node set but not used [-Wunused-but-set-variable]

Link: http://lkml.kernel.org/r/1566379929-118398-3-git-send-email-zhengbin13@xxxxxxxxxx
Signed-off-by: zhengbin <zhengbin13@xxxxxxxxxx>
Reported-by: Hulk Robot <hulkci@xxxxxxxxxx>
Cc: Jan Kara <jack@xxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 fs/reiserfs/stree.c |    4 ----
 1 file changed, 4 deletions(-)

--- a/fs/reiserfs/stree.c~fs-reiserfs-streec-remove-set-but-not-used-variables
+++ a/fs/reiserfs/stree.c
@@ -593,7 +593,6 @@ int search_by_key(struct super_block *sb
 	struct buffer_head *bh;
 	struct path_element *last_element;
 	int node_level, retval;
-	int right_neighbor_of_leaf_node;
 	int fs_gen;
 	struct buffer_head *reada_bh[SEARCH_BY_KEY_READA];
 	b_blocknr_t reada_blocks[SEARCH_BY_KEY_READA];
@@ -614,8 +613,6 @@ int search_by_key(struct super_block *sb
 
 	pathrelse(search_path);
 
-	right_neighbor_of_leaf_node = 0;
-
 	/*
 	 * With each iteration of this loop we search through the items in the
 	 * current node, and calculate the next current node(next path element)
@@ -701,7 +698,6 @@ io_error:
 			 */
 			block_number = SB_ROOT_BLOCK(sb);
 			expected_level = -1;
-			right_neighbor_of_leaf_node = 0;
 
 			/* repeat search from the root */
 			continue;
_

Patches currently in -mm which might be from zhengbin13@xxxxxxxxxx are

fs-reiserfs-journalc-remove-set-but-not-used-variables.patch
fs-reiserfs-streec-remove-set-but-not-used-variables.patch
fs-reiserfs-lbalancec-remove-set-but-not-used-variables.patch
fs-reiserfs-objectidc-remove-set-but-not-used-variables.patch
fs-reiserfs-printsc-remove-set-but-not-used-variables.patch
fs-reiserfs-fix_nodec-remove-set-but-not-used-variables.patch
fs-reiserfs-do_balanc-remove-set-but-not-used-variables.patch




[Index of Archives]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux