diff options
| author | Dafna Hirschfeld <dafna.hirschfeld@collabora.com> | 2021-03-01 20:18:34 +0300 |
|---|---|---|
| committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2021-03-11 13:59:43 +0300 |
| commit | 18a4ca76ada464b3240f194800d41ea21fbb4229 (patch) | |
| tree | 943b1c37238853f119e4a54d5dec9ead14e5376b /include | |
| parent | 4fade8329ab2be2b902fce8db3625fd12234b873 (diff) | |
| download | linux-18a4ca76ada464b3240f194800d41ea21fbb4229.tar.xz | |
media: rkisp1: params: remove extra 'if' conditions
There is a repeating code pattern:
if (a || b) {
if (a)
...
if (b)
...
}
In this pattern, the first 'if' is redundant.
The code can be replaced with:
if (a)
...
if (b)
...
Signed-off-by: Dafna Hirschfeld <dafna.hirschfeld@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
