diff options
author | Darshan Rathod <darshanrathod475@gmail.com> | 2025-07-15 11:30:56 +0000 |
---|---|---|
committer | Hans Verkuil <hverkuil+cisco@kernel.org> | 2025-09-13 18:34:57 +0200 |
commit | e67b5f8313229d058bddc88e29a73b9b6cdab7a9 (patch) | |
tree | d954cf2037e38d34f8443d41808fbbcbb3e080f2 /scripts/generate_rust_analyzer.py | |
parent | ecba852dc9f4993f4f894ea1f352564560e19a3e (diff) |
media: uvcvideo: Fix assignment in if condition
The function uvc_input_init() uses an assignment of the return value
of input_register_device() within the condition of an if statement.
This coding style is discouraged by the Linux kernel coding style guide
as it can be confused with a comparison and hide potential bugs.
The checkpatch.pl script flags this as an error:
"ERROR: do not use assignment in if condition"
Separate the assignment into its own statement before the conditional
check to improve code readability and adhere to the kernel's
coding standards.
Signed-off-by: Darshan Rathod <darshanrathod475@gmail.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Hans de Goede <hansg@kernel.org>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions