========== checkpatch - FAILED ERROR: do not use assignment in if condition #25: FILE: tools/testing/selftests/bpf/progs/res_spin_lock.c:41: + if (!(r = bpf_res_spin_lock(&elem2->lock))) { ERROR: do not use assignment in if condition #41: FILE: tools/testing/selftests/bpf/progs/res_spin_lock.c:127: + if (!(ret = bpf_res_spin_lock(locks[34]))) { total: 2 errors, 0 warnings, 0 checks, 30 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 01bfea03d9be ("selftests/bpf: Make res_spin_lock AA test condition stronger") 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.