summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJihoon Jung <jh8801.jung@samsung.com>2020-08-21 15:27:47 +0900
committerJihoon Jung <jh8801.jung@samsung.com>2020-08-21 15:44:59 +0900
commit79134800255293750ca6ed1b2ff661af25d8d3f8 (patch)
tree67a1e8cec52550f6f2e8eee8a99afe6ba2a1fb8f
parentf5a13a8c51bd407b49df10231fe6b3195cf5a5d6 (diff)
downloadmtp-responder-tizen_6.0.tar.gz
mtp-responder-tizen_6.0.tar.bz2
mtp-responder-tizen_6.0.zip
Change-Id: I47a817d0f169330d8586b6d4024fa9c4a6857245 Signed-off-by: Jihoon Jung <jh8801.jung@samsung.com>
-rw-r--r--src/mtp_util_fs.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mtp_util_fs.c b/src/mtp_util_fs.c
index f279045..a7ff32b 100644
--- a/src/mtp_util_fs.c
+++ b/src/mtp_util_fs.c
@@ -341,7 +341,6 @@ mtp_bool _util_copy_dir_children_recursive(const mtp_char *origpath,
{
DIR *dir = NULL;
struct dirent *entry;
- mtp_int32 retval = 0;
mtp_char old_pathname[MTP_MAX_PATHNAME_SIZE + 1] = { 0 };
mtp_char new_pathname[MTP_MAX_PATHNAME_SIZE + 1] = { 0 };
struct stat entryinfo;
@@ -475,7 +474,7 @@ mtp_bool _util_copy_dir_children_recursive(const mtp_char *origpath,
}
closedir(dir);
- return (retval == 0) ? TRUE : FALSE;
+ return TRUE;
}
mtp_bool _util_file_move(const mtp_char *origpath, const mtp_char *newpath,