WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #23: new file mode 100644 CHECK: Comparison to NULL could be written "!nsim_dir" #83: FILE: tools/testing/selftests/net/netdevsim.c:56: + if (nsim_dir == NULL) { CHECK: Comparison to NULL could be written "entry" #90: FILE: tools/testing/selftests/net/netdevsim.c:63: + if (entry != NULL && CHECK: Comparison to NULL could be written "entry" #95: FILE: tools/testing/selftests/net/netdevsim.c:68: + } while (entry != NULL); CHECK: Comparison to NULL could be written "!nsim_dev_dir" #150: FILE: tools/testing/selftests/net/netdevsim.c:123: + if (nsim_dev_dir == NULL) { CHECK: Comparison to NULL could be written "entry" #157: FILE: tools/testing/selftests/net/netdevsim.c:130: + if (entry != NULL && entry->d_name[0] != '.') CHECK: Comparison to NULL could be written "entry" #160: FILE: tools/testing/selftests/net/netdevsim.c:133: + } while (entry != NULL); CHECK: Comparison to NULL could be written "!entry" #162: FILE: tools/testing/selftests/net/netdevsim.c:135: + if (entry == NULL || entry->d_name[0] == '.') { CHECK: Comparison to NULL could be written "!nsim_dev_link" #182: FILE: tools/testing/selftests/net/netdevsim.c:155: + if (nsim_dev_link == NULL) total: 0 errors, 1 warnings, 8 checks, 391 lines checked NOTE: For some of the reported defects, checkpatch may be able to mechanically convert to the typical style using --fix or --fix-inplace. Commit 9e5c8c577121 ("selftests/net: add netdevsim.c") has style problems, please review. NOTE: Ignored message types: ALLOC_SIZEOF_STRUCT BAD_REPORTED_BY_LINK CAMELCASE COMMIT_LOG_LONG_LINE GIT_COMMIT_ID MACRO_ARG_REUSE NO_AUTHOR_SIGN_OFF NOTE: If any of the errors are false positives, please report them to the maintainer, see CHECKPATCH in MAINTAINERS. total: 0 errors, 1 warnings, 8 checks, 391 lines checked