mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 20:51:03 +02:00
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>
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user