qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 8/9] net: Remove initialization of static ints


From: Zhang Han
Subject: [PATCH 8/9] net: Remove initialization of static ints
Date: Tue, 22 Dec 2020 16:23:39 +0800

Do not initialise statics to 0 or NULL

Signed-off-by: Zhang Han <zhanghan64@huawei.com>
---
 net/tap-solaris.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/net/tap-solaris.c b/net/tap-solaris.c
index d5af4efd60..0b4f709abc 100644
--- a/net/tap-solaris.c
+++ b/net/tap-solaris.c
@@ -63,10 +63,10 @@ static int tap_alloc(char *dev, size_t dev_size, Error 
**errp)
     /* FIXME leaks like a sieve on error paths */
     /* FIXME suspicious: many errors are reported, then ignored */
     int tap_fd, if_fd, ppa = -1;
-    static int ip_fd = 0;
+    static int ip_fd;
     char *ptr;
 
-    static int arp_fd = 0;
+    static int arp_fd;
     int ip_muxid, arp_muxid;
     struct strioctl  strioc_if, strioc_ppa;
     int link_type = I_PLINK;
-- 
2.29.1.59.gf9b6481aed




reply via email to

[Prev in Thread] Current Thread [Next in Thread]