From: "jempty.liang" <imntjempty@163.com>
To: hverkuil@kernel.org, mchehab@kernel.org
Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org,
"jempty.liang" <imntjempty@163.com>
Subject: [PATCH] media: vivid: Simplify fb_vblank init in fb_blank
Date: Mon, 12 Jan 2026 05:59:21 +0000 [thread overview]
Message-ID: <20260112055921.118009-1-imntjempty@163.com> (raw)
Adjust struct fb_vblank declaration scope and use aggregate init
instead of memset for cleaner FBIOGET_VBLANK handling.
Signed-off-by: jempty.liang <imntjempty@163.com>
---
drivers/media/test-drivers/vivid/vivid-osd.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/media/test-drivers/vivid/vivid-osd.c b/drivers/media/test-drivers/vivid/vivid-osd.c
index 91ad9b314f2e..566f870b56a6 100644
--- a/drivers/media/test-drivers/vivid/vivid-osd.c
+++ b/drivers/media/test-drivers/vivid/vivid-osd.c
@@ -73,12 +73,10 @@ void vivid_fb_clear(struct vivid_dev *dev)
static int vivid_fb_ioctl(struct fb_info *info, unsigned cmd, unsigned long arg)
{
struct vivid_dev *dev = (struct vivid_dev *)info->par;
+ struct fb_vblank vblank = {};
switch (cmd) {
case FBIOGET_VBLANK: {
- struct fb_vblank vblank;
-
- memset(&vblank, 0, sizeof(vblank));
vblank.flags = FB_VBLANK_HAVE_COUNT | FB_VBLANK_HAVE_VCOUNT |
FB_VBLANK_HAVE_VSYNC;
vblank.count = 0;
--
2.25.1
next reply other threads:[~2026-01-12 5:59 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-12 5:59 jempty.liang [this message]
2026-03-16 14:07 ` Hans Verkuil
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260112055921.118009-1-imntjempty@163.com \
--to=imntjempty@163.com \
--cc=hverkuil@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®