[media] smiapp: Scaling goodness is signed
authorSakari Ailus <sakari.ailus@linux.intel.com>
Tue, 15 Apr 2014 18:22:11 +0000 (15:22 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Fri, 23 May 2014 14:30:22 +0000 (11:30 -0300)
commitaca6bf5432dafb44791128c3e181c59ec87af041
treede9472927e8834e17958c3537f40279ae1d6aa53
parente5a3f7b88295fbf221d4c371f361e40dfc735b50
[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