diff options
| author | Darshan Rathod <darshanrathod475@gmail.com> | 2025-07-18 16:29:27 +0300 |
|---|---|---|
| committer | Hans Verkuil <hverkuil+cisco@kernel.org> | 2025-10-14 16:07:36 +0300 |
| commit | 90d0f046ab60078c6ee51de70dbe68cae4130c71 (patch) | |
| tree | 5853a6139501cf45459e47d328c67fd95351ea73 /include/linux/memory | |
| parent | ef08d2ea869612747f5c22f5588e969b04f7ec19 (diff) | |
| download | linux-90d0f046ab60078c6ee51de70dbe68cae4130c71.tar.xz | |
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>
Diffstat (limited to 'include/linux/memory')
0 files changed, 0 insertions, 0 deletions
