CHECK: Comparison to NULL could be written "ptp->info->getcrosststamp" #39: FILE: drivers/ptp/ptp_chardev.c:169: + .cross_timestamping = ptp->info->getcrosststamp != NULL, CHECK: Comparison to NULL could be written "ptp->info->adjphase" #40: FILE: drivers/ptp/ptp_chardev.c:170: + .adjust_phase = ptp->info->adjphase != NULL && CHECK: Comparison to NULL could be written "ptp->info->getmaxphase" #41: FILE: drivers/ptp/ptp_chardev.c:171: + ptp->info->getmaxphase != NULL, total: 0 errors, 0 warnings, 3 checks, 66 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 87a52d60ea51 ("ptp: Split out PTP_CLOCK_GETCAPS ioctl code") 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, 3 checks, 66 lines checked