summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gp10b/priv_ring_gp10b.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gp10b/priv_ring_gp10b.c')
-rw-r--r--drivers/gpu/nvgpu/gp10b/priv_ring_gp10b.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/priv_ring_gp10b.c b/drivers/gpu/nvgpu/gp10b/priv_ring_gp10b.c
index 12cd2a84..1a73ab0d 100644
--- a/drivers/gpu/nvgpu/gp10b/priv_ring_gp10b.c
+++ b/drivers/gpu/nvgpu/gp10b/priv_ring_gp10b.c
@@ -67,9 +67,8 @@ static const char *const error_type_badf5xyy[] = {
67void gp10b_priv_ring_decode_error_code(struct gk20a *g, 67void gp10b_priv_ring_decode_error_code(struct gk20a *g,
68 u32 error_code) 68 u32 error_code)
69{ 69{
70 u32 error_type, error_type_index; 70 u32 error_type_index;
71 71
72 error_type = (error_code & 0x0000f000) >> 24;
73 error_type_index = (error_code & 0x00000f00) >> 16; 72 error_type_index = (error_code & 0x00000f00) >> 16;
74 error_code = error_code & 0xBADFf000; 73 error_code = error_code & 0xBADFf000;
75 74