156-media-atmel-atmel-isc-Remove-redundant-assignment-to.patch 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. From b074b4695004b793a9199716295cb76da6c41686 Mon Sep 17 00:00:00 2001
  2. From: Jiapeng Chong <[email protected]>
  3. Date: Mon, 17 May 2021 12:07:48 +0200
  4. Subject: [PATCH 156/247] media: atmel: atmel-isc: Remove redundant assignment
  5. to i
  6. Variable i is being assigned a value however the assignment is
  7. never read, so this redundant assignment can be removed.
  8. Clean up the following clang-analyzer warning:
  9. drivers/media/platform/atmel/atmel-isc-base.c:975:2: warning: Value
  10. stored to 'i' is never read [clang-analyzer-deadcode.DeadStores].
  11. Reported-by: Abaci Robot <[email protected]>
  12. Signed-off-by: Jiapeng Chong <[email protected]>
  13. Signed-off-by: Hans Verkuil <[email protected]>
  14. Signed-off-by: Mauro Carvalho Chehab <[email protected]>
  15. ---
  16. drivers/media/platform/atmel/atmel-isc-base.c | 1 -
  17. 1 file changed, 1 deletion(-)
  18. --- a/drivers/media/platform/atmel/atmel-isc-base.c
  19. +++ b/drivers/media/platform/atmel/atmel-isc-base.c
  20. @@ -972,7 +972,6 @@ static int isc_enum_fmt_vid_cap(struct f
  21. index -= ARRAY_SIZE(controller_formats);
  22. - i = 0;
  23. supported_index = 0;
  24. for (i = 0; i < ARRAY_SIZE(formats_list); i++) {