CHECK: Comparison to NULL could be written "transport->clnt" #162: FILE: net/sunrpc/xprtsock.c:1365: + if (transport->clnt != NULL) { CHECK: Comparison to NULL could be written "upper_clnt" #173: FILE: net/sunrpc/xprtsock.c:2765: + if (upper_clnt != NULL) CHECK: Comparison to NULL could be written "transport->clnt" #184: FILE: net/sunrpc/xprtsock.c:2815: + WARN_ON_ONCE(transport->clnt != NULL); total: 0 errors, 0 warnings, 3 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 3ec593088f0b ("sunrpc: fix TLS connect_worker rpc_clnt lifetime UAF") has style problems, please review. NOTE: Ignored message types: ALLOC_SIZEOF_STRUCT BAD_REPORTED_BY_LINK CAMELCASE COMMIT_LOG_LONG_LINE FILE_PATH_CHANGES 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, 3 checks, 30 lines checked