diff options
author | Russell King <rmk+kernel@armlinux.org.uk> | 2019-12-09 14:09:15 +0300 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2020-01-21 04:12:40 +0300 |
commit | 95fbadbb5566e383f0cfe40d895e698ab38bdbc7 (patch) | |
tree | 97c0fc9d60b2f16765c9803ef52003bbdff93a74 /fs/adfs/dir_f.c | |
parent | 71b2612776c1b9c34c460f79bcdaef46d0e77ed2 (diff) | |
download | linux-95fbadbb5566e383f0cfe40d895e698ab38bdbc7.tar.xz |
fs/adfs: dir: add common dir object initialisation
Initialise the dir object before we pass it down to the directory format
specific read handler. This allows us to get rid of the initialisation
inside those handlers.
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
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.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/adfs/dir_f.c b/fs/adfs/dir_f.c index c1a950c7400a..e62f35eb7789 100644 --- a/fs/adfs/dir_f.c +++ b/fs/adfs/dir_f.c @@ -139,9 +139,6 @@ static int adfs_dir_read(struct super_block *sb, u32 indaddr, size >>= blocksize_bits; - dir->nr_buffers = 0; - dir->sb = sb; - for (blk = 0; blk < size; blk++) { int phys; |