On Thu Mar 19 18:35:45 2026 +0800, Zile Xiong wrote:
> Drop unnecessary casts when accessing vma->vm_private_data.
> 
> No functional change.
> 
> Signed-off-by: Zile Xiong <[email protected]>
> Signed-off-by: Sakari Ailus <[email protected]>

Patch committed.

Thanks,
Sakari Ailus

 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 b91cbd0262d0..0a8f401a1ca1 100644
--- a/drivers/staging/media/atomisp/pci/hmm/hmm_bo.c
+++ b/drivers/staging/media/atomisp/pci/hmm/hmm_bo.c
@@ -984,8 +984,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);
 
@@ -1002,8 +1001,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);
 
_______________________________________________
linuxtv-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to