aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFeng Tang <feng.tang@intel.com>2010-06-08 16:51:29 +0800
committerFeng Tang <feng.tang@intel.com>2010-07-20 11:10:03 +0800
commit847c7eeabe11032a13e04a8b29526b3024906d98 (patch)
treec0fc5eb64b45873d3fecea02bcaa00d18dd3b147
parent49db2cbc1db01c4fbbbba6f51050941fd7411930 (diff)
downloadsyslinux-847c7eeabe11032a13e04a8b29526b3024906d98.tar.gz
syslinux-847c7eeabe11032a13e04a8b29526b3024906d98.tar.xz
syslinux-847c7eeabe11032a13e04a8b29526b3024906d98.zip
elflink: remove the unnecessary calling of times() in rawcon_read.c
-rw-r--r--com32/lib/sys/rawcon_read.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/com32/lib/sys/rawcon_read.c b/com32/lib/sys/rawcon_read.c
index 92c9b294..fbcd9364 100644
--- a/com32/lib/sys/rawcon_read.c
+++ b/com32/lib/sys/rawcon_read.c
@@ -36,7 +36,6 @@
#include <string.h>
#include <com32.h>
#include <minmax.h>
-#include <sys/times.h>
#include "file.h"
/* Global, since it's used by stdcon_read */
@@ -45,14 +44,11 @@ ssize_t __rawcon_read(struct file_info *fp, void *buf, size_t count)
com32sys_t ireg, oreg;
char *bufp = buf;
size_t n = 0;
- clock_t start;
(void)fp;
memset(&ireg, 0, sizeof ireg);
- start = times(NULL);
-
while (n < count) {
/* Poll */
ireg.eax.b[1] = 0x0B;