Skip to content

Commit

Permalink
selftests/ir: remove ARRAY_SIZE define from ir_loopback.c
Browse files Browse the repository at this point in the history
ARRAY_SIZE is defined in several selftests. Remove definitions from
individual test files and include header file for the define instead.
ARRAY_SIZE define is added in a separate patch to prepare for this
change.

Remove ARRAY_SIZE from ir_loopback.c and pickup the one defined
in kselftest.h.

Signed-off-by: Shuah Khan <[email protected]>
  • Loading branch information
shuahkh committed Dec 11, 2021
1 parent fc1d330 commit 8eda796
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion tools/testing/selftests/ir/ir_loopback.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
#include "../kselftest.h"

#define TEST_SCANCODES 10
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
#define SYSFS_PATH_MAX 256
#define DNAME_PATH_MAX 256

Expand Down

0 comments on commit 8eda796

Please sign in to comment.