x86/domctl: cleanup
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 21 Apr 2015 07:04:45 +0000 (09:04 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 21 Apr 2015 07:04:45 +0000 (09:04 +0200)
commit38b37ed8270532c70df1a8ddae6aa300aa4ca09f
tree62a123111ec14171d06b68a80623c48373ed1196
parent4ff3449f0e9d175ceb9551d3f2aecb59273f639d
x86/domctl: cleanup

 * latch curr/currd once at start
 * drop redundant "ret = 0" and braces
 * use "copyback = 1" when appropriate
 * move break statements inside case-specific braced scopes
 * don't bother check for NULL before calling xfree()
 * eliminate trailing whitespace
 * Xen style corrections

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/domctl.c