mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
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@oracle.com> Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
This commit is contained in:
1 parent
3bf5fdf8d8
commit
beba3693f7
1 file changed
+1
-2
@@ -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 )
|
||||
|
||||