From: Denys Vlasenko Date: Tue, 10 Aug 2010 11:06:06 +0000 (+0200) Subject: rtc: remove useless code in "RTC is in UTC" detection X-Git-Tag: 1_18_0~341 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d07b20ff14a934c113a53210abb8a91ac587d9a2;p=oweals%2Fbusybox.git rtc: remove useless code in "RTC is in UTC" detection Signed-off-by: Denys Vlasenko --- 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;