aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging
diff options
context:
space:
mode:
authorNathan Chancellor <natechancellor@gmail.com>2020-05-27 09:11:45 +0200
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2020-06-11 18:16:39 +0200
commit55fffcb927ba5ad6e0d6b348beefdea0478a6807 (patch)
tree42664808026265080ccb4579be99316e8153adb0 /drivers/staging
parentmedia: atomisp: Clean up if block in sh_css_sp_init_stage (diff)
downloadlinux-dev-55fffcb927ba5ad6e0d6b348beefdea0478a6807.tar.xz
linux-dev-55fffcb927ba5ad6e0d6b348beefdea0478a6807.zip
media: atomisp: Remove second increment of count in atomisp_subdev_probe
Clang warns: ../drivers/staging/media/atomisp/pci/atomisp_v4l2.c:1097:3: warning: variable 'count' is incremented both in the loop header and in the loop body [-Wfor-loop-analysis] count++; ^ This was probably unintentional, remove it. Link: https://github.com/ClangBuiltLinux/linux/issues/1036 Reported-by: kbuild test robot <lkp@intel.com> Signed-off-by: Nathan Chancellor <natechancellor@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/media/atomisp/pci/atomisp_v4l2.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/staging/media/atomisp/pci/atomisp_v4l2.c b/drivers/staging/media/atomisp/pci/atomisp_v4l2.c
index b30a2e54067c..22206d192362 100644
--- a/drivers/staging/media/atomisp/pci/atomisp_v4l2.c
+++ b/drivers/staging/media/atomisp/pci/atomisp_v4l2.c
@@ -1092,7 +1092,6 @@ static int atomisp_subdev_probe(struct atomisp_device *isp)
if (camera_count)
break;
msleep(SUBDEV_WAIT_TIMEOUT);
- count++;
}
/* Wait more time to give more time for subdev init code to finish */
msleep(5 * SUBDEV_WAIT_TIMEOUT);