src.ctf.fs: don't call ds_file_munmap on failure in ds_file_mmap_next
authorSimon Marchi <simon.marchi@efficios.com>
Tue, 5 Nov 2019 20:06:52 +0000 (15:06 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 15 Nov 2019 21:10:12 +0000 (16:10 -0500)
commite6f1a52bdb47a2d235a9dedd9eebdb60c533625f
treefa01302d2aa454d703bc5089acd342b9e396d8aa
parent4bbea805f414decb600f6335b3645021ada30cd2
src.ctf.fs: don't call ds_file_munmap on failure in ds_file_mmap_next

It seems useless to call ds_file_munmap here.  We can reach the error
label either because:

- the previous call to ds_file_munmap has failed, in which case there's
  no point in retrying
- the mmap call returned MAP_FAILED, in which case there's no point un
  unmapping

Change-Id: Ia11716a967047d32773ab67f51bcf7516489f183
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
src/plugins/ctf/fs-src/data-stream-file.c
This page took 0.023823 seconds and 4 git commands to generate.