* [PATCH] staging: media: atomisp: hmm: remove unnecessary casts
@ 2026-03-19 9:36 Zile Xiong
2026-03-19 9:42 ` Greg KH
0 siblings, 1 reply; 3+ messages in thread
From: Zile Xiong @ 2026-03-19 9:36 UTC (permalink / raw)
To: andy, hansg, mchehab, gregkh
Cc: sakari.ailus, linux-kernel, linux-media, linux-staging,
Zile Xiong
Drop unnecessary casts when accessing vma->vm_private_data.
No functional change.
Signed-off-by: Zile Xiong <xiongzile99@gmail.com>
---
drivers/staging/media/atomisp/pci/hmm/hmm_bo.c | 7 ++-----
1 file changed, 2 insertions(+), 5 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..68116edda591 100644
--- a/drivers/staging/media/atomisp/pci/hmm/hmm_bo.c
+++ b/drivers/staging/media/atomisp/pci/hmm/hmm_bo.c
@@ -975,9 +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);
hmm_bo_ref(bo);
@@ -993,8 +991,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
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] staging: media: atomisp: hmm: remove unnecessary casts
2026-03-19 9:36 [PATCH] staging: media: atomisp: hmm: remove unnecessary casts Zile Xiong
@ 2026-03-19 9:42 ` Greg KH
2026-03-19 10:35 ` [PATCH v2] " Zile Xiong
0 siblings, 1 reply; 3+ messages in thread
From: Greg KH @ 2026-03-19 9:42 UTC (permalink / raw)
To: Zile Xiong
Cc: andy, hansg, mchehab, sakari.ailus, linux-kernel, linux-media,
linux-staging
On Thu, Mar 19, 2026 at 05:36:25PM +0800, Zile Xiong wrote:
> Drop unnecessary casts when accessing vma->vm_private_data.
>
> No functional change.
>
> Signed-off-by: Zile Xiong <xiongzile99@gmail.com>
> ---
> drivers/staging/media/atomisp/pci/hmm/hmm_bo.c | 7 ++-----
> 1 file changed, 2 insertions(+), 5 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..68116edda591 100644
> --- a/drivers/staging/media/atomisp/pci/hmm/hmm_bo.c
> +++ b/drivers/staging/media/atomisp/pci/hmm/hmm_bo.c
> @@ -975,9 +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);
>
> hmm_bo_ref(bo);
Why did you delete the extra blank line that checkpatch is just going to
ask you to add back again in a future change? :)
thanks,
greg k-h
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH v2] staging: media: atomisp: hmm: remove unnecessary casts
2026-03-19 9:42 ` Greg KH
@ 2026-03-19 10:35 ` Zile Xiong
0 siblings, 0 replies; 3+ messages in thread
From: Zile Xiong @ 2026-03-19 10:35 UTC (permalink / raw)
To: gregkh, hansg, mchehab, andy
Cc: sakari.ailus, linux-staging, linux-media, linux-kernel, kees,
abdelrahmanfekry375, Zile Xiong
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
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-03-19 10:35 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-19 9:36 [PATCH] staging: media: atomisp: hmm: remove unnecessary casts Zile Xiong
2026-03-19 9:42 ` Greg KH
2026-03-19 10:35 ` [PATCH v2] " Zile Xiong
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox