]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
media: dvb-core: dvb_demux: Fix assignments in if conditions
authorDarshan Rathod <darshanrathod475@gmail.com>
Fri, 18 Jul 2025 13:29:27 +0000 (13:29 +0000)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Tue, 14 Oct 2025 13:07:36 +0000 (15:07 +0200)
commit90d0f046ab60078c6ee51de70dbe68cae4130c71
tree5853a6139501cf45459e47d328c67fd95351ea73
parentef08d2ea869612747f5c22f5588e969b04f7ec19
media: dvb-core: dvb_demux: Fix assignments in if conditions

The code in dvb_demux.c has multiple instances where a variable is
assigned a value inside the conditional part of an 'if' statement.
This practice is prohibited by the Linux kernel coding style to avoid
potential bugs arising from accidental assignments (e.g., '=' instead
of '==').

This patch refactors these instances by moving the assignment out of
the 'if' statement and onto the preceding line. This makes the code
clearer, safer, and compliant with checkpatch.pl.

Additionally, a minor whitespace issue in a function signature is also
corrected. This is a purely stylistic change with no functional impact.

Signed-off-by: Darshan Rathod <darshanrathod475@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
drivers/media/dvb-core/dvb_demux.c