Signed-off-by: Oleksij Rempel <linux@xxxxxxxxxxxxxxxx> --- fs/fs.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/fs/fs.c b/fs/fs.c index a30afa35f..42fd63ad0 100644 --- a/fs/fs.c +++ b/fs/fs.c @@ -2527,8 +2527,6 @@ EXPORT_SYMBOL(opendir); int closedir(DIR *dir) { - int ret; - if (!dir) { errno = EBADF; return -EBADF; @@ -2536,7 +2534,7 @@ int closedir(DIR *dir) release_dir(dir); - return ret; + return 0; } EXPORT_SYMBOL(closedir); -- 2.17.1 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox