OMAPFB: remove silly loop in fb2display()
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Thu, 13 Dec 2012 10:17:08 +0000 (12:17 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Thu, 13 Dec 2012 10:18:24 +0000 (12:18 +0200)
commitc7e1eae537652330cec3fbf5f8f50000b2f24269
treed1752293bb9899b6817f307ad6215abfe42751fe
parentfa0c5e71295fa4d62b900818d900c16980985e72
OMAPFB: remove silly loop in fb2display()

fb2display() has a for loop which always returns at the first iteration.
Replace the loop with a simple if.

This removes the smatch warning:

drivers/video/omap2/omapfb/omapfb.h:153 fb2display() info: loop could be
replaced with if statement.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/omap2/omapfb/omapfb.h