From 5b691990939bedc382ea161a058cd8b23b8f8ad1 Mon Sep 17 00:00:00 2001 From: Marco Casaroli Date: Thu, 8 Oct 2026 11:29:54 +0200 Subject: [PATCH] audio: Fix nxstyle errors in audio.c. Whitespace only. Add a blank line after two declarations. The errors are older than the next commit, but checkpatch checks the whole file. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Marco Casaroli --- audio/audio.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/audio/audio.c b/audio/audio.c index 74229873b59..8016ef45ac3 100644 --- a/audio/audio.c +++ b/audio/audio.c @@ -895,6 +895,7 @@ static int audio_ioctl(FAR struct file *filep, int cmd, unsigned long arg) { FAR struct audio_caps_s *caps = (FAR struct audio_caps_s *)((uintptr_t)arg); + DEBUGASSERT(lower->ops->getcaps != NULL); audinfo("AUDIOIOC_GETCAPS: Device=%d\n", caps->ac_type); @@ -1342,6 +1343,7 @@ static int audio_poll(FAR struct file *filep, /* This is a request to tear down the poll. */ FAR struct pollfd **slot = (FAR struct pollfd **)fds->priv; + *slot = NULL; fds->priv = NULL; }