From: Zile Xiong <xiongzile99@gmail.com>
To: gregkh@linuxfoundation.org, hansg@kernel.org, mchehab@kernel.org,
andy@kernel.org
Cc: sakari.ailus@linux.intel.com, linux-staging@lists.linux.dev,
linux-media@vger.kernel.org, linux-kernel@vger.kernel.org,
kees@kernel.org, abdelrahmanfekry375@gmail.com,
Zile Xiong <xiongzile99@gmail.com>
Subject: [PATCH v2] staging: media: atomisp: hmm: remove unnecessary casts
Date: Thu, 19 Mar 2026 18:35:45 +0800 [thread overview]
Message-ID: <20260319103545.34515-1-xiongzile99@gmail.com> (raw)
In-Reply-To: <2026031933-juggle-decimeter-3547@gregkh>
Drop unnecessary casts when accessing vma->vm_private_data.
No functional change.
Signed-off-by: Zile Xiong <xiongzile99@gmail.com>
---
Changes in v2:
- restore the blank line
drivers/staging/media/atomisp/pci/hmm/hmm_bo.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/drivers/staging/media/atomisp/pci/hmm/hmm_bo.c b/drivers/staging/media/atomisp/pci/hmm/hmm_bo.c
index 856561e951a5..bd8091c21b26 100644
--- a/drivers/staging/media/atomisp/pci/hmm/hmm_bo.c
+++ b/drivers/staging/media/atomisp/pci/hmm/hmm_bo.c
@@ -975,8 +975,7 @@ void hmm_bo_unref(struct hmm_buffer_object *bo)
static void hmm_bo_vm_open(struct vm_area_struct *vma)
{
- struct hmm_buffer_object *bo =
- (struct hmm_buffer_object *)vma->vm_private_data;
+ struct hmm_buffer_object *bo = vma->vm_private_data;
check_bo_null_return_void(bo);
@@ -993,8 +992,7 @@ static void hmm_bo_vm_open(struct vm_area_struct *vma)
static void hmm_bo_vm_close(struct vm_area_struct *vma)
{
- struct hmm_buffer_object *bo =
- (struct hmm_buffer_object *)vma->vm_private_data;
+ struct hmm_buffer_object *bo = vma->vm_private_data;
check_bo_null_return_void(bo);
--
2.39.5
prev parent reply other threads:[~2026-03-19 10:35 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-19 9:36 [PATCH] " Zile Xiong
2026-03-19 9:42 ` Greg KH
2026-03-19 10:35 ` Zile Xiong [this message]
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=20260319103545.34515-1-xiongzile99@gmail.com \
--to=xiongzile99@gmail.com \
--cc=abdelrahmanfekry375@gmail.com \
--cc=andy@kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=hansg@kernel.org \
--cc=kees@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=linux-staging@lists.linux.dev \
--cc=mchehab@kernel.org \
--cc=sakari.ailus@linux.intel.com \
/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®