gpu: nvgpu: gp10b: Do not clear compbit store size

Do not clear compbit store size if max size is zero. It's already
zero at this point.

Change-Id: I70d99cfe459fae27d8c1be4aa569ac0717a454d7
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/720599
This commit is contained in:
Terje Bergstrom
2015-03-21 09:02:22 -07:00
committed by Deepak Nibade
parent bd65e7611f
commit e3dcb7546a

View File

@@ -72,10 +72,8 @@ static int gp10b_ltc_init_comptags(struct gk20a *g, struct gr_gk20a *gr)
gk20a_dbg_fn("");
if (max_comptag_lines == 0) {
gr->compbit_store.size = 0;
if (max_comptag_lines == 0)
return 0;
}
if (max_comptag_lines > hw_max_comptag_lines)
max_comptag_lines = hw_max_comptag_lines;