projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0077bf8
)
fs/squashfs: sqfs_read: remove useless sqfs_closedir()
76/250876/1
author
Richard Genoud
<richard.genoud@posteo.net>
Tue, 3 Nov 2020 11:11:12 +0000
(12:11 +0100)
committer
Jaehoon Chung
<jh80.chung@samsung.com>
Tue, 5 Jan 2021 07:08:55 +0000
(16:08 +0900)
as sqfs_opendir failed, there's no need to call sqfs_closedir
Signed-off-by: Richard Genoud <richard.genoud@posteo.net>
[jh80.chung: cherry picked from mainline commit
b34949fe9baaae49003b2981213495bab3afef9b
]
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Change-Id: Id61d825b7976f151a77738dadf5c99ba0613d955
fs/squashfs/sqfs.c
patch
|
blob
|
history
diff --git
a/fs/squashfs/sqfs.c
b/fs/squashfs/sqfs.c
index
f824339
..
8e2863a
100644
(file)
--- a/
fs/squashfs/sqfs.c
+++ b/
fs/squashfs/sqfs.c
@@
-1326,7
+1326,6
@@
int sqfs_read(const char *filename, void *buf, loff_t offset, loff_t len,
sqfs_split_path(&file, &dir, filename);
ret = sqfs_opendir(dir, &dirsp);
if (ret) {
- sqfs_closedir(dirsp);
goto free_paths;
}