summaryrefslogtreecommitdiffstats
path: root/drivers/media/v4l2-core/v4l2-mc.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@s-opensource.com>2017-06-26 08:33:56 -0400
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-07-20 16:25:41 -0400
commit1ad371deb9b0be142dca205611a56854a37fc48d (patch)
tree096d5557af2c8b08fc93269fd011766658927c01 /drivers/media/v4l2-core/v4l2-mc.c
parentf3b38dcaa4768f13c7009267b7eef1c94298e9a2 (diff)
downloadlinux-1ad371deb9b0be142dca205611a56854a37fc48d.tar.gz
linux-1ad371deb9b0be142dca205611a56854a37fc48d.tar.bz2
linux-1ad371deb9b0be142dca205611a56854a37fc48d.zip
media: pvrusb2: fix the retry logic
As reported by this warning: drivers/media/usb/pvrusb2/pvrusb2-encoder.c:263 pvr2_encoder_cmd() warn: continue to end of do { ... } while(0); loop There's an issue at the retry logic there: the current logic is: do { if (need_to_retry) continue; some_code(); } while (0); Well, that won't work, as continue will make it test for zero, and abort the loop. So, change the loop to: while (1) { if (need_to_retry) continue; some_code(); break; }; With seems to be what's actually expected there. Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/v4l2-core/v4l2-mc.c')
0 files changed, 0 insertions, 0 deletions