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)
committerSimon Marchi <simon.marchi@efficios.com>
Fri, 15 Nov 2019 18:08:12 +0000 (13:08 -0500)
commit8b9fc36ad7daf88fead2b486a2932c98cffa414a
tree710ae761fc09e5b13df43e04155f604d5d813e7f
parent9f5571db427bb54b1cb887ca3f243668f6524196
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.023707 seconds and 4 git commands to generate.