rtc: remove useless code in "RTC is in UTC" detection
authorDenys Vlasenko <vda.linux@googlemail.com>
Tue, 10 Aug 2010 11:06:06 +0000 (13:06 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Tue, 10 Aug 2010 11:06:06 +0000 (13:06 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
libbb/rtc.c

index fcd6c64d71fa0939f7da9c7381d47dc1a2bda753..97d18ed53c551eaa526b4f879b88ef8a6fe98601 100644 (file)
@@ -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;