mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
make get_file() return its argument
simplifies a bunch of callers... Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
parent
cecb46f194
commit
cb0942b812
16 changed files with 23 additions and 38 deletions
|
|
@ -2135,8 +2135,7 @@ static inline void flush_unauthorized_files(const struct cred *cred,
|
|||
if (!IS_ERR(devnull)) {
|
||||
/* replace all the matching ones with this */
|
||||
do {
|
||||
get_file(devnull);
|
||||
replace_fd(n - 1, devnull, 0);
|
||||
replace_fd(n - 1, get_file(devnull), 0);
|
||||
} while ((n = iterate_fd(files, n, match_file, cred)) != 0);
|
||||
fput(devnull);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue