mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 17:47:41 +02:00
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:
parent
016a8735b8
commit
de1844c0da
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user