|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen master] tools/livepatch: cleanup unnecessary "j = ARRAY_SIZE(action_options); "
commit beba3693f7243e68bbe31fe3794da91068eeea5b
Author: Dongli Zhang <dongli.zhang@xxxxxxxxxx>
AuthorDate: Fri Jun 10 00:02:52 2016 +0800
Commit: Wei Liu <wei.liu2@xxxxxxxxxx>
CommitDate: Fri Jun 10 11:08:42 2016 +0100
tools/livepatch: cleanup unnecessary "j = ARRAY_SIZE(action_options);"
Local variable "j" would be used only when "i == ARRAY_SIZE(main_options)"
is true. Thus, it is not necessary to update "j" when "i ==
ARRAY_SIZE(main_options)" is false.
Signed-off-by: Dongli Zhang <dongli.zhang@xxxxxxxxxx>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>
---
tools/misc/xen-livepatch.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/tools/misc/xen-livepatch.c b/tools/misc/xen-livepatch.c
index 28f339a..3162489 100644
--- a/tools/misc/xen-livepatch.c
+++ b/tools/misc/xen-livepatch.c
@@ -435,8 +435,7 @@ int main(int argc, char *argv[])
"'xen-livepatch help'\n", argv[1]);
return 1;
}
- } else
- j = ARRAY_SIZE(action_options);
+ }
xch = xc_interface_open(0,0,0);
if ( !xch )
--
generated by git-patchbot for /home/xen/git/xen.git#master
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |