Skip to content

Commit b4df3e3

Browse files
committed
No need to break after return in switches
Signed-off-by: Alastair D'Silva <alastair@d-silva.org>
1 parent 399d056 commit b4df3e3

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/mmio.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,6 @@ ocxl_err ocxl_mmio_map_advanced(ocxl_afu_h afu, ocxl_mmio_type type, size_t size
284284
return rc;
285285
}
286286
return global_mmio_map(afu, size, prot, flags, offset, region);
287-
break;
288287

289288
case OCXL_PER_PASID_MMIO:
290289
if (offset + size > afu->per_pasid_mmio.length) {
@@ -294,7 +293,6 @@ ocxl_err ocxl_mmio_map_advanced(ocxl_afu_h afu, ocxl_mmio_type type, size_t size
294293
return rc;
295294
}
296295
return mmio_map(afu, size, prot, flags, offset, region);
297-
break;
298296

299297
default:
300298
errmsg(afu, rc, "Unknown MMIO type %d", type);
@@ -361,11 +359,9 @@ int ocxl_mmio_get_fd(ocxl_afu_h afu, ocxl_mmio_type type)
361359
switch (type) {
362360
case OCXL_GLOBAL_MMIO:
363361
return afu->global_mmio_fd;
364-
break;
365362

366363
case OCXL_PER_PASID_MMIO:
367364
return afu->fd;
368-
break;
369365

370366
default:
371367
errmsg(afu, OCXL_INVALID_ARGS, "Unknown MMIO type %d", type);

0 commit comments

Comments
 (0)