Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2fff040e authored by Seemanta Dutta's avatar Seemanta Dutta
Browse files

msm: camera: ispif: Use proper type while comparing negative values.



Not using the proper type to compare against negative values
will not work in case of 64bit build because long and int types
have different ranges for LP64 builds. So fix it by using a proper
cast.

Change-Id: I80c7701f3d41ceb27cae7293df5c6ca5578c34cd
Signed-off-by: default avatarSeemanta Dutta <seemanta@codeaurora.org>
parent 8b606f17
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -194,7 +194,7 @@ int msm_ispif_get_ahb_clk_info(struct ispif_device *ispif_dev,
	}
	for (i = 0; i < count; i++) {
		ispif_8974_ahb_clk_info[i].clk_rate =
			 (rates[i] == 0) ? -1 : rates[i];
			 (rates[i] == 0) ? (long)-1 : rates[i];
		CDBG("clk_rate[%d] = %ld\n", i,
			 ispif_8974_ahb_clk_info[i].clk_rate);
	}