]> git.ipfire.org Git - thirdparty/libnl.git/commitdiff
Fix compile warning in utils.c
authorThomas Graf <tgraf@suug.ch>
Sat, 3 Jul 2010 13:17:04 +0000 (15:17 +0200)
committerThomas Graf <tgraf@suug.ch>
Sat, 3 Jul 2010 13:17:04 +0000 (15:17 +0200)
lib/utils.c

index 4007bee1adf838dd0b7d1ff9411ff64211d255f3..e1fdae13511a3a945a10a87ab342fd8cb225da38 100644 (file)
@@ -316,7 +316,7 @@ static void __init get_psched_settings(void)
                        uint32_t tick, us;
                        /* the file contains 4 hexadecimals, but we just use
                           the first two of them */
-                       int r = fscanf(fd, "%08x %08x", &tick, &us);
+                       fscanf(fd, "%08x %08x", &tick, &us);
                        ticks_per_usec = (double)tick/(double)us;
                        fclose(fd);
                }