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 a9e4e412f9438a7f1daca9078e1985e5f3e9f5c8
Author: Bowen Wang <[email protected]>
AuthorDate: Sat Oct 24 20:10:26 2026 +0800

    drivers/virtio/virtio: fix nxstyle errors
    
    Add the blank line after declarations that tools/nxstyle requires,
    so later changes to this file pass checkpatch.  No functional change.
    
    Signed-off-by: Bowen Wang <[email protected]>
---
 drivers/virtio/virtio.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/virtio/virtio.c b/drivers/virtio/virtio.c
index 4be55d9430d..d7623df5583 100644
--- a/drivers/virtio/virtio.c
+++ b/drivers/virtio/virtio.c
@@ -195,6 +195,7 @@ int virtio_register_driver(FAR struct virtio_driver *driver)
       FAR struct virtio_device_item_s *item =
         container_of(node, struct virtio_device_item_s, node);
       FAR struct virtio_device *device = item->device;
+
       if (item->driver == NULL && driver->device == device->id.device)
         {
           /* If found the device in the device list, call driver probe,
@@ -237,6 +238,7 @@ int virtio_unregister_driver(FAR struct virtio_driver 
*driver)
     {
       FAR struct virtio_device_item_s *item =
         container_of(node, struct virtio_device_item_s, node);
+
       if (item->driver == driver)
         {
           /* 1. Call driver remove function;
@@ -291,6 +293,7 @@ int virtio_register_device(FAR struct virtio_device *device)
     {
       FAR struct virtio_driver *driver =
         container_of(node, struct virtio_driver, node);
+
       if (driver->device == device->id.device)
         {
           /* If found the driver in the driver list, call driver probe,
@@ -332,6 +335,7 @@ int virtio_unregister_device(FAR struct virtio_device 
*device)
     {
       FAR struct virtio_device_item_s *item =
         container_of(node, struct virtio_device_item_s, node);
+
       if (item->device == device)
         {
           /* Call driver remove */

Reply via email to