Skip to content

Commit

Permalink
ipc/shm.c: shm_split(): remove unneeded test for NULL shm_file_data.v…
Browse files Browse the repository at this point in the history
…m_ops

This was added by the recent "ipc/shm.c: add split function to
shm_vm_ops", but it is not necessary.

Reviewed-by: Mike Kravetz <[email protected]>
Cc: Laurent Dufour <[email protected]>
Cc: Dan Williams <[email protected]>
Cc: Michal Hocko <[email protected]>
Cc: Davidlohr Bueso <[email protected]>
Cc: Manfred Spraul <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
akpm00 authored and torvalds committed Apr 11, 2018
1 parent 24704f3 commit a61fc2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ipc/shm.c
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ static int shm_split(struct vm_area_struct *vma, unsigned long addr)
struct file *file = vma->vm_file;
struct shm_file_data *sfd = shm_file_data(file);

if (sfd->vm_ops && sfd->vm_ops->split)
if (sfd->vm_ops->split)
return sfd->vm_ops->split(vma, addr);

return 0;
Expand Down

0 comments on commit a61fc2c

Please sign in to comment.