[xen staging] x86/hvm: Drop hvm_sr_handlers initializer

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[xen staging] x86/hvm: Drop hvm_sr_handlers initializer

patchbot
commit 683b39b686cc893d0e0c720a5945e2b507c992fa
Author:     Alexandru Isaila <[hidden email]>
AuthorDate: Fri Aug 3 17:39:31 2018 +0200
Commit:     Jan Beulich <[hidden email]>
CommitDate: Fri Aug 3 17:39:31 2018 +0200

    x86/hvm: Drop hvm_sr_handlers initializer
   
    This initializer is flawed and only sets .name of array entry 0
    to a non-NULL string.
   
    Suggested-by: Jan Beulich <[hidden email]>
    Signed-off-by: Alexandru Isaila <[hidden email]>
    Acked-by: Andrew Cooper <[hidden email]>
---
 xen/arch/x86/hvm/save.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xen/arch/x86/hvm/save.c b/xen/arch/x86/hvm/save.c
index 8984a23a88..422b96c016 100644
--- a/xen/arch/x86/hvm/save.c
+++ b/xen/arch/x86/hvm/save.c
@@ -89,7 +89,7 @@ static struct {
     const char *name;
     size_t size;
     int kind;
-} hvm_sr_handlers[HVM_SAVE_CODE_MAX + 1] = { {NULL, NULL, "<?>"}, };
+} hvm_sr_handlers[HVM_SAVE_CODE_MAX + 1];
 
 /* Init-time function to add entries to that list */
 void __init hvm_register_savevm(uint16_t typecode,
--
generated by git-patchbot for /home/xen/git/xen.git#staging

_______________________________________________
Xen-changelog mailing list
[hidden email]
https://lists.xenproject.org/xen-changelog