[stgt] [PATCH] bs_sheepdog.c: fix a compiler warning due to an unused label

Ryusuke Konishi konishi.ryusuke at lab.ntt.co.jp
Sat Oct 11 06:13:22 CEST 2014


This gets rid of the following gcc warning in sd_open function by
removing the unused label 'retry':

 bs_sheepdog.c: In function 'sd_open':
 bs_sheepdog.c:1199:1: warning: label 'retry' defined but not used [-Wunused-label]
  retry:
  ^

Signed-off-by: Ryusuke Konishi <konishi.ryusuke at lab.ntt.co.jp>
---
 usr/bs_sheepdog.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/usr/bs_sheepdog.c b/usr/bs_sheepdog.c
index 9376946..ba5b099 100644
--- a/usr/bs_sheepdog.c
+++ b/usr/bs_sheepdog.c
@@ -1196,7 +1196,6 @@ trans_to_expect_nothing:
 	ai->min_dirty_data_idx = UINT32_MAX;
 	ai->max_dirty_data_idx = 0;
 
-retry:
 	ret = read_object(ai, (char *)&ai->inode, vid_to_vdi_oid(vid),
 			  0, SD_INODE_SIZE, 0, &need_reload);
 	if (ret)
-- 
1.8.3.1

--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html



More information about the stgt mailing list