aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libbb/rtc.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/libbb/rtc.c b/libbb/rtc.c
index fcd6c64d7..97d18ed53 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;