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:57:55 +0100 |
commit | af4b5eac7acf36444de078c294c3adc3f2763511 (patch) | |
tree | 4b50daed11cc05a2096cc90646b27185fc6b241d /meta | |
parent | 56f4adfc37d44e9626a5d157863f4b760bb516ec (diff) | |
download | openembedded-core-af4b5eac7acf36444de078c294c3adc3f2763511.tar.gz openembedded-core-af4b5eac7acf36444de078c294c3adc3f2763511.tar.bz2 openembedded-core-af4b5eac7acf36444de078c294c3adc3f2763511.zip |
makedevs: Avoid unnecessary timestamp calculation
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, { int status; struct stat sb; - time_t timestamp = time(NULL); memset(&sb, 0, sizeof(struct stat)); status = lstat(path, &sb); @@ -127,7 +126,6 @@ static void add_new_device(char *name, char *path, unsigned long uid, * better match the actual file or strange things will happen.... */ if ((mode & S_IFMT) != (sb.st_mode & S_IFMT)) error_msg_and_die("%s: file type does not match specified type!", path); - timestamp = sb.st_mtime; } mknod(path, mode, rdev); |