upstream: [media] smiapp: Scaling goodness is signed
authorSakari Ailus <sakari.ailus@linux.intel.com>
Tue, 15 Apr 2014 18:22:11 +0000 (15:22 -0300)
committerChanho Park <chanho61.park@samsung.com>
Thu, 7 Aug 2014 05:26:56 +0000 (14:26 +0900)
commitae77b9e547a94ef16df6a577412d0bb98d3b6bd8
tree5469e27b1d75e1faf3c35469c348742fb1ce3bad
parent366ced6b5b3c8b22d1c4445b5523c531748e3935
upstream: [media] smiapp: Scaling goodness is signed

The "best" value was unsigned however, leading to signed-to-unsigned
comparison and wrong results. Possibly only on a newer GCC. Fix this by
making the best value signed as well.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/i2c/smiapp/smiapp-core.c