video: tegra: resolve compilation time warnings
Sanjay Singh Rawat [Thu, 29 Mar 2012 06:49:38 +0000 (11:49 +0530)]
bug 949219

Change-Id: I1ed8d08de4bdba4643b2ae4e8320db6f9c97a18f
Signed-off-by: Sanjay Singh Rawat <srawat@nvidia.com>
Reviewed-on: http://git-master/r/92310
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

drivers/video/tegra/dc/nvsd.c

index a1665b2..9bcfe4c 100644 (file)
@@ -159,10 +159,11 @@ static bool nvsd_phase_in_adjustments(struct tegra_dc *dc,
                every ADJ_PHASE_STEP frames*/
                if ((step-- & ADJ_PHASE_STEP) == ADJ_PHASE_STEP) {
 
-                       if (val != cur_sd_brightness)
+                       if (val != cur_sd_brightness) {
                                val > cur_sd_brightness ?
                                (cur_sd_brightness++) :
                                (cur_sd_brightness--);
+                       }
 
                        if (target_k != cur_k) {
                                if (target_k > cur_k)