CHECK: Comparison to NULL could be written "!udph" #364: FILE: tools/testing/selftests/net/lib/xdp_native.bpf.c:242: + if (udph == NULL || udph + 1 > (struct udphdr *)data_end) CHECK: Comparison to NULL could be written "!udph" #384: FILE: tools/testing/selftests/net/lib/xdp_native.bpf.c:262: + if (udph == NULL) total: 0 errors, 0 warnings, 2 checks, 397 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 8d59ac243d5d ("selftests: drv-net: Test tail-adjustment support") 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, 0 warnings, 2 checks, 397 lines checked