summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2020-01-13 20:04:38 +0100
committerLennart Poettering <lennart@poettering.net>2020-01-14 10:44:19 +0100
commita0d6590c4e8fe0cd0f97d03db20a77236db523a3 (patch)
tree680a31325c446bce6b2e75d20e7d8c961c2d94f1
parent57f1030b1373455c531bf01e005fd62edcf5005f (diff)
downloadsystemd-a0d6590c4e8fe0cd0f97d03db20a77236db523a3.tar.gz
cgroup: no need to cast dev_t to dev_t
-rw-r--r--src/core/cgroup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/cgroup.c b/src/core/cgroup.c
index 4e9e59ac82..8b111b9197 100644
--- a/src/core/cgroup.c
+++ b/src/core/cgroup.c
@@ -655,9 +655,9 @@ static int lookup_block_device(const char *p, dev_t *ret) {
if (stat(p, &st) < 0)
return log_warning_errno(errno, "Couldn't stat device '%s': %m", p);
- rdev = (dev_t)st.st_rdev;
- dev = (dev_t)st.st_dev;
mode = st.st_mode;
+ rdev = st.st_rdev;
+ dev = st.st_dev;
} else if (r < 0)
return log_warning_errno(r, "Failed to parse major/minor from path '%s': %m", p);