Skip to contentSkip to conversation

ocfs2: remove unused label

PATCH New Arnd Bergmann 1 participant 1 message Feb 1, 2016 OCFS2

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ocfs2: remove unused label

A recent cleanup modified the ocfs2_file_write_iter function, which no longer uses its 'relock' label, as gcc warns:

fs/ocfs2/file.c: In function 'ocfs2_file_write_iter':
fs/ocfs2/file.c:2198:1: error: label 'relock' defined but not used [-Werror=unused-label]

This removes the label as well.

Fixes 1a46f12e5071 ("ocfs2: code clean up for direct io")

---
Found on ARM randconfig builds on linux-next last week.

fs/ocfs2/file.c +0 -1
index 41c506e7814e..c18ab45f8d21 100644
@@ -2195,7 +2195,6 @@ static ssize_t ocfs2_file_write_iter(struct kiocb *iocb,
 
 	inode_lock(inode);
 
-relock:
 	/*
 	 * Concurrent O_DIRECT writes are allowed with
 	 * mount_option "coherency=buffered".