diff options
author | Peter Kjellerstedt <peter.kjellerstedt@axis.com> | 2013-05-30 14:18:32 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-05-30 20:59:13 +0100 |
commit | ba319bbffa5e42612652b9a4fb79d232cfb4478a (patch) | |
tree | a5f85719fc4e743f5e1d0487a0aeb1b062488006 /meta | |
parent | c8bfe84eef929e11f6d07e6631d5012a2a42f119 (diff) | |
download | poky-ba319bbffa5e42612652b9a4fb79d232cfb4478a.tar.gz |
makedevs: Avoid unnecessary timestamp calculation
(From OE-Core rev: af4b5eac7acf36444de078c294c3adc3f2763511)
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-devtools/makedevs/makedevs-1.0.0/makedevs.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/meta/recipes-devtools/makedevs/makedevs-1.0.0/makedevs.c b/meta/recipes-devtools/makedevs/makedevs-1.0.0/makedevs.c index 4cfb1d5cb8..4bb316b332 100644 --- a/meta/recipes-devtools/makedevs/makedevs-1.0.0/makedevs.c +++ b/meta/recipes-devtools/makedevs/makedevs-1.0.0/makedevs.c | |||
@@ -116,7 +116,6 @@ static void add_new_device(char *name, char *path, unsigned long uid, | |||
116 | { | 116 | { |
117 | int status; | 117 | int status; |
118 | struct stat sb; | 118 | struct stat sb; |
119 | time_t timestamp = time(NULL); | ||
120 | 119 | ||
121 | memset(&sb, 0, sizeof(struct stat)); | 120 | memset(&sb, 0, sizeof(struct stat)); |
122 | status = lstat(path, &sb); | 121 | status = lstat(path, &sb); |
@@ -127,7 +126,6 @@ static void add_new_device(char *name, char *path, unsigned long uid, | |||
127 | * better match the actual file or strange things will happen.... */ | 126 | * better match the actual file or strange things will happen.... */ |
128 | if ((mode & S_IFMT) != (sb.st_mode & S_IFMT)) | 127 | if ((mode & S_IFMT) != (sb.st_mode & S_IFMT)) |
129 | error_msg_and_die("%s: file type does not match specified type!", path); | 128 | error_msg_and_die("%s: file type does not match specified type!", path); |
130 | timestamp = sb.st_mtime; | ||
131 | } | 129 | } |
132 | 130 | ||
133 | mknod(path, mode, rdev); | 131 | mknod(path, mode, rdev); |