summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2010-08-10 11:06:06 (GMT)
committer Denys Vlasenko <vda.linux@googlemail.com>2010-08-10 11:06:06 (GMT)
commitd07b20ff14a934c113a53210abb8a91ac587d9a2 (patch)
tree3c143a10530a7de45b345811a2ca4ff7fe722fa7
parentda0df47f244be581f48fd50909d6a68ceae327a9 (diff)
downloadbusybox-d07b20ff14a934c113a53210abb8a91ac587d9a2.tar.gz
busybox-d07b20ff14a934c113a53210abb8a91ac587d9a2.tar.bz2
rtc: remove useless code in "RTC is in UTC" detection
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--libbb/rtc.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/libbb/rtc.c b/libbb/rtc.c
index fcd6c64..97d18ed 100644
--- a/libbb/rtc.c
+++ b/libbb/rtc.c
@@ -22,13 +22,6 @@ int FAST_FUNC rtc_adjtime_is_utc(void)
char buffer[128];
while (fgets(buffer, sizeof(buffer), f)) {
- int len = strlen(buffer);
-
- while (len && isspace(buffer[len - 1]))
- len--;
-
- buffer[len] = 0;
-
if (strncmp(buffer, "UTC", 3) == 0) {
utc = 1;
break;