On Tue, 2016-01-19 at 00:57 -0500, Chester Lin wrote: > Coverity CID 1343309 > > Make GC_FREE reachable in all cases in libxl_get_scheduler() by > eliminating the error-path return and instead storing the error code > in > the returned variable. > > To make this semantically consistent, change the return type of > libxl_get_scheduler() from libxl_scheduler to int, and make a note of > the interpretation of the return value in libxl.h.  N.B. This change > breaks neither the API nor the ABI of libxl. > Not that I feel too strong about this, but I would reword this last sentence a bit. In fact, ABI, AFAIK, we don't care. API, someone could argue that it does actually break it, it's just the case that we don't think it breaks it in any ways that we should care. And maybe we should also add a note about the libxl_scheduler enum being (and needing to continue to do so) consistent with what xc_sched_id returns, like it's been done in another patch of this series? Anyway, that's all up for the tools maintainers to judge... The patch seems to me to do what was asked during v1 review, so: > Suggested-by: Ian Campbell > Signed-off-by: Chester Lin > Reviewed-by: Dario Faggioli Regards, Dario -- <> (Raistlin Majere) ----------------------------------------------------------------- Dario Faggioli, Ph.D, http://about.me/dario.faggioli Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK)