]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
fs-util: drop unnecessary initialization
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 2 Sep 2021 03:05:14 +0000 (12:05 +0900)
committerVito Caputo <vcaputo@pengaru.com>
Thu, 2 Sep 2021 04:36:36 +0000 (21:36 -0700)
src/basic/fs-util.c

index 027f86fc0b05df975d983ede3d81b6b894ac4b1b..cc8c5e1c3ec5f57870c6ed31037a177d2daf45cc 100644 (file)
@@ -375,7 +375,7 @@ int fd_warn_permissions(const char *path, int fd) {
 
 int touch_file(const char *path, bool parents, usec_t stamp, uid_t uid, gid_t gid, mode_t mode) {
         _cleanup_close_ int fd = -1;
-        int r, ret = 0;
+        int r, ret;
 
         assert(path);