OSDN Git Service

media: atmel-isi: drop unnecessary while loop
authorNicholas Mc Guire <hofrat@osadl.org>
Fri, 1 Jun 2018 12:46:14 +0000 (08:46 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Thu, 28 Jun 2018 10:49:59 +0000 (06:49 -0400)
commite8ced209510164f0b54d4bb2a34d243a8af8f561
tree373b7c01fd83fbedb29d109d5f3bf0a9c32178fc
parente32eb0d8a6cdc965347b964e45e40c9254bd7408
media: atmel-isi: drop unnecessary while loop

As there is no way this can loop it actually makes no sense to have
a while(1){} around the body - all three possible paths end in a return
statement.

Fixes: commit c1d82b895380 "[media] atmel-isi: move out of soc_camera to atmel"

Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
Acked-by: Ludovic Desroches <ludovic.desroches@microchip.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/atmel/atmel-isi.c