diff mbox series

[v1,16/59] block/gluster.c: remove unneeded 'exit' label

Message ID 20200106182425.20312-17-danielhb413@gmail.com
State New
Headers show
Series trivial unneeded labels cleanup | expand

Commit Message

Daniel Henrique Barboza Jan. 6, 2020, 6:23 p.m. UTC
'exit' label in find_allocation() can be replaced by a
'return -ENOTSUP' call.

CC: qemu-block@nongnu.org
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
---
 block/gluster.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/block/gluster.c b/block/gluster.c
index 4fa4a77a47..43bf76eed7 100644
--- a/block/gluster.c
+++ b/block/gluster.c
@@ -1381,7 +1381,7 @@  static int find_allocation(BlockDriverState *bs, off_t start,
     BDRVGlusterState *s = bs->opaque;
 
     if (!s->supports_seek_data) {
-        goto exit;
+        return -ENOTSUP;
     }
 
 #if defined SEEK_HOLE && defined SEEK_DATA
@@ -1466,7 +1466,6 @@  static int find_allocation(BlockDriverState *bs, off_t start,
     return -EBUSY;
 #endif
 
-exit:
     return -ENOTSUP;
 }