[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v1 16/59] block/gluster.c: remove unneeded 'exit' label
From: |
Daniel Henrique Barboza |
Subject: |
[PATCH v1 16/59] block/gluster.c: remove unneeded 'exit' label |
Date: |
Mon, 6 Jan 2020 15:23:42 -0300 |
'exit' label in find_allocation() can be replaced by a
'return -ENOTSUP' call.
CC: address@hidden
Signed-off-by: Daniel Henrique Barboza <address@hidden>
---
block/gluster.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
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;
}
--
2.24.1
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH v1 16/59] block/gluster.c: remove unneeded 'exit' label,
Daniel Henrique Barboza <=