diff options
Diffstat (limited to 'tools/testing/selftests/networking/timestamping/rxtimestamp.c')
| -rw-r--r-- | tools/testing/selftests/networking/timestamping/rxtimestamp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/networking/timestamping/rxtimestamp.c b/tools/testing/selftests/networking/timestamping/rxtimestamp.c index 00f286661dcd..dd4162fc0419 100644 --- a/tools/testing/selftests/networking/timestamping/rxtimestamp.c +++ b/tools/testing/selftests/networking/timestamping/rxtimestamp.c | |||
| @@ -341,7 +341,7 @@ int main(int argc, char **argv) | |||
| 341 | return 0; | 341 | return 0; |
| 342 | case 'n': | 342 | case 'n': |
| 343 | t = atoi(optarg); | 343 | t = atoi(optarg); |
| 344 | if (t > ARRAY_SIZE(test_cases)) | 344 | if (t >= ARRAY_SIZE(test_cases)) |
| 345 | error(1, 0, "Invalid test case: %d", t); | 345 | error(1, 0, "Invalid test case: %d", t); |
| 346 | all_tests = false; | 346 | all_tests = false; |
| 347 | test_cases[t].enabled = true; | 347 | test_cases[t].enabled = true; |
