diff options
author | Andrew Morton <akpm@linux-foundation.org> | 2018-04-10 19:35:42 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2018-04-11 13:28:38 -0400 |
commit | a61fc2cbdf6a753b7000dd216c62285a68755147 (patch) | |
tree | c68ff08a029862e0bee324ca3be0bfb0e01264d1 | |
parent | 24704f36196ce79b48dd3921e782d15fd9c87959 (diff) |
ipc/shm.c: shm_split(): remove unneeded test for NULL shm_file_data.vm_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 <mike.kravetz@oracle.com>
Cc: Laurent Dufour <ldufour@linux.vnet.ibm.com>
Cc: Dan Williams <dan.j.williams@intel.com>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Davidlohr Bueso <dave@stgolabs.net>
Cc: Manfred Spraul <manfred@colorfullife.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | ipc/shm.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -415,7 +415,7 @@ static int shm_split(struct vm_area_struct *vma, unsigned long addr) | |||
415 | struct file *file = vma->vm_file; | 415 | struct file *file = vma->vm_file; |
416 | struct shm_file_data *sfd = shm_file_data(file); | 416 | struct shm_file_data *sfd = shm_file_data(file); |
417 | 417 | ||
418 | if (sfd->vm_ops && sfd->vm_ops->split) | 418 | if (sfd->vm_ops->split) |
419 | return sfd->vm_ops->split(vma, addr); | 419 | return sfd->vm_ops->split(vma, addr); |
420 | 420 | ||
421 | return 0; | 421 | return 0; |