staging: media: atomisp: hmm: remove unnecessary casts

Drop unnecessary casts when accessing vma->vm_private_data.

No functional change.

Signed-off-by: Zile Xiong <xiongzile99@gmail.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
This commit is contained in:
Zile Xiong 2026-03-19 18:35:45 +08:00 committed by Sakari Ailus
parent 016a8735b8
commit de1844c0da

View File

@ -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);