media: atomisp: Remove second increment of count in atomisp_subdev_probe
authorNathan Chancellor <natechancellor@gmail.com>
Wed, 27 May 2020 07:11:45 +0000 (09:11 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 11 Jun 2020 16:16:39 +0000 (18:16 +0200)
commit55fffcb927ba5ad6e0d6b348beefdea0478a6807
tree42664808026265080ccb4579be99316e8153adb0
parentebf89d12cae21dbefec6c8fe489ad98746087b93
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>
drivers/staging/media/atomisp/pci/atomisp_v4l2.c