summaryrefslogtreecommitdiffstats
path: root/fs/adfs/dir_f.c
diff options
context:
space:
mode:
authorJulia Lawall2015-11-21 16:15:37 +0100
committerAl Viro2015-12-07 03:17:16 +0100
commit0125f504ed320826a78b43d636de957d703465a8 (patch)
tree67ec2fce9e0eaa9e8d5bb3c5b8ea8bab349eeab1 /fs/adfs/dir_f.c
parentvfs: show_vfsstat: remove redundant initialization and check of error code (diff)
downloadkernel-qcow2-linux-0125f504ed320826a78b43d636de957d703465a8.tar.gz
kernel-qcow2-linux-0125f504ed320826a78b43d636de957d703465a8.tar.xz
kernel-qcow2-linux-0125f504ed320826a78b43d636de957d703465a8.zip
adfs: constify adfs_dir_ops structures
The adfs_dir_ops structures are never modified, so declare them as const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/adfs/dir_f.c')
-rw-r--r--fs/adfs/dir_f.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/adfs/dir_f.c b/fs/adfs/dir_f.c
index 4bbe853ee50a..0fbfd0b04ae0 100644
--- a/fs/adfs/dir_f.c
+++ b/fs/adfs/dir_f.c
@@ -476,7 +476,7 @@ adfs_f_free(struct adfs_dir *dir)
dir->sb = NULL;
}
-struct adfs_dir_ops adfs_f_dir_ops = {
+const struct adfs_dir_ops adfs_f_dir_ops = {
.read = adfs_f_read,
.setpos = adfs_f_setpos,
.getnext = adfs_f_getnext,