This is an automated email from the ASF dual-hosted git repository.

xiaoxiang781216 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit e2efaeb5819d25f02948f9d6a35745e681b019e2
Author: Bowen Wang <[email protected]>
AuthorDate: Thu Nov 12 19:05:26 2026 +0800

    net/vsock: drop the node initializer from the driver structs
    
    struct virtio_driver and struct vhost_driver now keep the device id
    first and the list node last, and are registered with dq_addlast(), so
    there is nothing to initialize. The LIST_INITIAL_VALUE(node) entry left
    the positional initializers one field off.
    
    Signed-off-by: Bowen Wang <[email protected]>
---
 net/vsock/vsock_vhost.c  | 1 -
 net/vsock/vsock_virtio.c | 1 -
 2 files changed, 2 deletions(-)

diff --git a/net/vsock/vsock_vhost.c b/net/vsock/vsock_vhost.c
index 0b13e184506..604cf997cc1 100644
--- a/net/vsock/vsock_vhost.c
+++ b/net/vsock/vsock_vhost.c
@@ -89,7 +89,6 @@ static ssize_t vsock_vhost_send_pkt(FAR struct 
vsock_transport_s *t,
 
 static struct vhost_driver g_vsock_vhost_driver =
 {
-  LIST_INITIAL_VALUE(g_vsock_vhost_driver.node), /* Node */
   VIRTIO_ID_VSOCK,                               /* Device id */
   vsock_vhost_probe,                             /* Probe */
   vsock_vhost_remove,                            /* Remove */
diff --git a/net/vsock/vsock_virtio.c b/net/vsock/vsock_virtio.c
index 4832185d7c1..1e94e6108ef 100644
--- a/net/vsock/vsock_virtio.c
+++ b/net/vsock/vsock_virtio.c
@@ -110,7 +110,6 @@ static ssize_t vsock_virtio_send_pkt(FAR struct 
vsock_transport_s *t,
 
 static struct virtio_driver g_vsock_virtio_driver =
 {
-  LIST_INITIAL_VALUE(g_vsock_virtio_driver.node), /* node */
   VIRTIO_ID_VSOCK,                                /* device id */
   vsock_virtio_probe,                             /* probe */
   vsock_virtio_remove,                            /* remove */

Reply via email to