diff options
author | Chen Gang <xili_gchen_5257@hotmail.com> | 2015-11-06 03:48:35 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-11-06 04:34:48 +0100 |
commit | 1e3ee14b9355a688ffe24725fa746ab120c42881 (patch) | |
tree | e70d8443ce609a7f88059c9e305828b19c3fc123 /tools | |
parent | mm/mmap.c: remove redundant statement "error = -ENOMEM" (diff) | |
download | linux-1e3ee14b9355a688ffe24725fa746ab120c42881.tar.xz linux-1e3ee14b9355a688ffe24725fa746ab120c42881.zip |
mm/mmap.c: do not initialize retval in mmap_pgoff()
When fget() fails we can return -EBADF directly.
Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com>
Acked-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions