rtc: remove useless code in "RTC is in UTC" detection
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
da0df47f24
commit
d07b20ff14
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user