diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2013-05-22 22:22:04 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2013-06-29 04:57:05 -0400 |
commit | ac6614b76478e68173ccf7ad4e9e98035cc9c21d (patch) | |
tree | ed2c996b6e64e44c5a752dfafd650bfa1eb7f035 /arch/alpha/kernel/osf_sys.c | |
parent | 2233f31aade393641f0eaed43a71110e629bb900 (diff) |
[readdir] constify ->actor
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/alpha/kernel/osf_sys.c')
-rw-r--r-- | arch/alpha/kernel/osf_sys.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/arch/alpha/kernel/osf_sys.c b/arch/alpha/kernel/osf_sys.c index ac19c7299d8e..1402fcc11c2c 100644 --- a/arch/alpha/kernel/osf_sys.c +++ b/arch/alpha/kernel/osf_sys.c | |||
@@ -147,17 +147,16 @@ SYSCALL_DEFINE4(osf_getdirentries, unsigned int, fd, | |||
147 | { | 147 | { |
148 | int error; | 148 | int error; |
149 | struct fd arg = fdget(fd); | 149 | struct fd arg = fdget(fd); |
150 | struct osf_dirent_callback buf; | 150 | struct osf_dirent_callback buf = { |
151 | .ctx.actor = osf_filldir, | ||
152 | .dirent = dirent, | ||
153 | .basep = basep, | ||
154 | .count = count | ||
155 | }; | ||
151 | 156 | ||
152 | if (!arg.file) | 157 | if (!arg.file) |
153 | return -EBADF; | 158 | return -EBADF; |
154 | 159 | ||
155 | buf.dirent = dirent; | ||
156 | buf.basep = basep; | ||
157 | buf.count = count; | ||
158 | buf.error = 0; | ||
159 | buf.ctx.actor = osf_filldir; | ||
160 | |||
161 | error = iterate_dir(arg.file, &buf.ctx); | 160 | error = iterate_dir(arg.file, &buf.ctx); |
162 | if (error >= 0) | 161 | if (error >= 0) |
163 | error = buf.error; | 162 | error = buf.error; |