diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2015-03-21 12:02:22 -0400 |
---|---|---|
committer | Deepak Nibade <dnibade@nvidia.com> | 2016-12-27 04:52:04 -0500 |
commit | e3dcb7546a0d99ca7f1e120f481174e6ec650860 (patch) | |
tree | 2ba110c9a38d3435f489ea0a395d3994beb35fb7 | |
parent | bd65e7611feb4bfaea0e3cb7f57a573391587e2e (diff) |
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
-rw-r--r-- | drivers/gpu/nvgpu/gp10b/ltc_gp10b.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/ltc_gp10b.c b/drivers/gpu/nvgpu/gp10b/ltc_gp10b.c index b32e2979..dbeed474 100644 --- a/drivers/gpu/nvgpu/gp10b/ltc_gp10b.c +++ b/drivers/gpu/nvgpu/gp10b/ltc_gp10b.c | |||
@@ -72,10 +72,8 @@ static int gp10b_ltc_init_comptags(struct gk20a *g, struct gr_gk20a *gr) | |||
72 | 72 | ||
73 | gk20a_dbg_fn(""); | 73 | gk20a_dbg_fn(""); |
74 | 74 | ||
75 | if (max_comptag_lines == 0) { | 75 | if (max_comptag_lines == 0) |
76 | gr->compbit_store.size = 0; | ||
77 | return 0; | 76 | return 0; |
78 | } | ||
79 | 77 | ||
80 | if (max_comptag_lines > hw_max_comptag_lines) | 78 | if (max_comptag_lines > hw_max_comptag_lines) |
81 | max_comptag_lines = hw_max_comptag_lines; | 79 | max_comptag_lines = hw_max_comptag_lines; |