mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-19 22:55:43 -04: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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user