Skip to content

Instantly share code, notes, and snippets.

@conor-pwbot
Created February 13, 2023 19:06
Show Gist options
  • Save conor-pwbot/3e9dce947260043fb75cab3ae2a0210c to your computer and use it in GitHub Desktop.
Save conor-pwbot/3e9dce947260043fb75cab3ae2a0210c to your computer and use it in GitHub Desktop.
ERROR: do not use assignment in if condition
==========
checkpatch - FAILED
ERROR: do not use assignment in if condition
#90: FILE: kernel/printk/printk.c:3178:
+ if (newcon->setup &&
total: 1 errors, 0 warnings, 0 checks, 103 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 23e2ede44005 ("kernel: Match preferred console first.") has style problems, please review.
NOTE: Ignored message types: ALLOC_SIZEOF_STRUCT 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment