|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH 1/5] libxl: tidy libxl_get_scheduler() according to CODING_STYLE
To more closely follow the guidelines in CODING_STYLE, store the result
of the libxc call in the local variable r, and the check the result of
the call in a separate statement.
Additionally, change the error log statement to more accurately reflect
the failure. This is the only functional change introduced by this
patch.
Signed-off-by: Joshua Otto <jtotto@xxxxxxxxxxxx>
---
tools/libxl/libxl.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/tools/libxl/libxl.c b/tools/libxl/libxl.c
index 9207621..ca4679b 100644
--- a/tools/libxl/libxl.c
+++ b/tools/libxl/libxl.c
@@ -5585,10 +5585,11 @@ out:
libxl_scheduler libxl_get_scheduler(libxl_ctx *ctx)
{
- libxl_scheduler sched, ret;
GC_INIT(ctx);
- if ((ret = xc_sched_id(ctx->xch, (int *)&sched)) != 0) {
- LOGE(ERROR, "getting domain info list");
+ libxl_scheduler sched;
+ int r = xc_sched_id(ctx->xch, (int *)&sched);
+ if (r != 0) {
+ LOGE(ERROR, "getting current scheduler id");
return ERROR_FAIL;
GC_FREE;
}
--
1.9.1
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |