You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2026/10/22 06:02:46 UTC
(nuttx) 01/05: drivers/virtio/virtio-gpu: fix nxstyle errors
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 2fd5f3dc5f600f043be3bba73ffea8f15f12584f
Author: Bowen Wang <wa...@xiaomi.com>
AuthorDate: Tue Oct 20 23:06:12 2026 +0800
drivers/virtio/virtio-gpu: 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 <wa...@xiaomi.com>
---
drivers/virtio/virtio-gpu.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/virtio/virtio-gpu.c b/drivers/virtio/virtio-gpu.c
index ae048a69935..df301736e95 100644
--- a/drivers/virtio/virtio-gpu.c
+++ b/drivers/virtio/virtio-gpu.c
@@ -164,6 +164,7 @@ static FAR void *virtio_gpu_zalloc_cmd(FAR struct virtio_gpu_priv_s *priv)
{
irqstate_t flags = spin_lock_irqsave(&priv->lock);
FAR union virtio_gpu_cmd_u *cmd = priv->freecmd;
+
if (cmd != NULL)
{
priv->freecmd = cmd->next;
@@ -192,6 +193,7 @@ static void virtio_gpu_free_cmd(FAR struct virtio_gpu_priv_s *priv,
{
FAR union virtio_gpu_cmd_u *node = cmd;
irqstate_t flags = spin_lock_irqsave(&priv->lock);
+
node->next = priv->freecmd;
priv->freecmd = node;
spin_unlock_irqrestore(&priv->lock, flags);
@@ -586,6 +588,7 @@ static void virtio_gpu_vsync_loop(FAR void *arg)
static void virtio_gpu_vsync_interrupt(FAR void *arg)
{
FAR struct virtio_gpu_priv_s *priv = (FAR struct virtio_gpu_priv_s *)arg;
+
virtio_gpu_vsync_loop(arg);
work_queue(HPWORK, &priv->work, virtio_gpu_vsync_interrupt,
arg, VIRTIO_GPU_VSYNC_PERIOD);