staging: bcm2835-camera: Refactored get_format function
authorNarcisa Ana Maria Vasile <narcisaanamaria12@gmail.com>
Tue, 28 Feb 2017 23:52:53 +0000 (01:52 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 6 Mar 2017 08:39:54 +0000 (09:39 +0100)
commitfa2ccd35d7deb4b00b5474e215691028a39c1b56
tree9fe96d7864bdbe7c63c33e9bf726c5b383fddaee
parent2430125c1ff167cb19029b0790501a2a1a24a326
staging: bcm2835-camera: Refactored get_format function

Now, when the condition inside the for is fulfilled, I return the result,
instead of checking afterwards whether the counter has reached or not
the end of the list.

Signed-off-by: Narcisa Ana Maria Vasile <narcisaanamaria12@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c