diff options
Diffstat (limited to 'drivers/gpu/nvgpu/perf/vfe_var.c')
-rw-r--r-- | drivers/gpu/nvgpu/perf/vfe_var.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/perf/vfe_var.c b/drivers/gpu/nvgpu/perf/vfe_var.c index 65ede64a..35061a1f 100644 --- a/drivers/gpu/nvgpu/perf/vfe_var.c +++ b/drivers/gpu/nvgpu/perf/vfe_var.c | |||
@@ -678,10 +678,9 @@ static u32 vfe_var_construct_single_sensed_fuse(struct gk20a *g, | |||
678 | goto exit; | 678 | goto exit; |
679 | } | 679 | } |
680 | exit: | 680 | exit: |
681 | if (status) { | 681 | if (status) |
682 | if (*ppboardobj != NULL) | 682 | (*ppboardobj)->destruct(*ppboardobj); |
683 | (*ppboardobj)->destruct(*ppboardobj); | 683 | |
684 | } | ||
685 | return status; | 684 | return status; |
686 | } | 685 | } |
687 | 686 | ||