]> xenbits.xensource.com Git - people/royger/xen.git/commitdiff
ns16550: remove partial explicit initializer
authorNicola Vetrini <nicola.vetrini@bugseng.com>
Tue, 5 Dec 2023 16:31:23 +0000 (17:31 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 5 Dec 2023 20:29:00 +0000 (20:29 +0000)
The initializer of 'ns16550_com' violates MISRA C Rule 9.3
because it explicitly initializes only the first element of the array,
but the semantics is the same if the explicit initialization is
omitted.

No functional change.

Signed-off-by: Nicola Vetrini <nicola.vetrini@bugseng.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/drivers/char/ns16550.c

index ddf2a48be6e7b3822ee4a5dc0449045538990c12..c8a51ed660082359c7237a772ba1773e5ca8d097 100644 (file)
@@ -73,7 +73,7 @@ static struct ns16550 {
     bool msi;
     const struct ns16550_config_param *param; /* Points into .init.*! */
 #endif
-} ns16550_com[2] = { { 0 } };
+} ns16550_com[2] = {};
 
 #ifdef NS16550_PCI
 struct ns16550_config {