CHECK: Comparison to NULL could be written "kp" #161: FILE: include/linux/sockptr.h:186: + if ((__optlen).kp != NULL) { \ CHECK: Comparison to NULL could be written "kp" #175: FILE: include/linux/sockptr.h:199: + if ((__optlen).kp != NULL) { \ CHECK: Comparison to NULL could be written "optlen.user" #210: FILE: net/socket.c:2362: + } else if (optlen.user != NULL) { WARNING: line length of 86 exceeds 80 columns #228: FILE: net/socket.c:2380: + if (copy_from_sockptr(&koptlen, optlen, sizeof(koptlen)) == 0) total: 0 errors, 1 warnings, 3 checks, 92 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 9e1d4c901078 ("net: pass a kernel pointer via 'optlen_t' to proto[ops].getsockopt() hooks") 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, 3 checks, 92 lines checked