Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ee60498f authored by Al Viro's avatar Al Viro
Browse files

coda_venus_readdir(): use offsetof()



Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent c066b65a
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -449,8 +449,7 @@ static int coda_venus_readdir(struct file *coda_file, void *buf,
	struct file *host_file;
	struct dentry *de;
	struct venus_dirent *vdir;
	unsigned long vdir_size =
	    (unsigned long)(&((struct venus_dirent *)0)->d_name);
	unsigned long vdir_size = offsetof(struct venus_dirent, d_name);
	unsigned int type;
	struct qstr name;
	ino_t ino;