Skip to content

Commit 4eddfaf

Browse files
johnhubbardshuahkh
authored andcommitted
selftests/timers: remove unused irqcount variable
When building with clang, via: make LLVM=1 -C tools/testing/selftest ...clang warns about an unused irqcount variable. clang is correct: the variable is incremented and then ignored. Fix this by deleting the irqcount variable. Signed-off-by: John Hubbard <[email protected]> Acked-by: John Stultz <[email protected]> Reviewed-by: Muhammad Usama Anjum <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
1 parent b00db6f commit 4eddfaf

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tools/testing/selftests/timers/rtcpie.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ static const char default_rtc[] = "/dev/rtc0";
2929

3030
int main(int argc, char **argv)
3131
{
32-
int i, fd, retval, irqcount = 0;
32+
int i, fd, retval;
3333
unsigned long tmp, data, old_pie_rate;
3434
const char *rtc = default_rtc;
3535
struct timeval start, end, diff;
@@ -120,7 +120,6 @@ int main(int argc, char **argv)
120120

121121
fprintf(stderr, " %d",i);
122122
fflush(stderr);
123-
irqcount++;
124123
}
125124

126125
/* Disable periodic interrupts */

0 commit comments

Comments
 (0)