gpu: nvgpu: Fix MISRA 16.1 violation in BIOS unit

- Rule 16.1 states that all switch statements shall
  be well-formed
- "default" case was missing in a switch statement
   Fix this MISRA violation in this CL.

JIRA NVGPU-3546

Change-Id: Iadfbf91c335c564a169263e19d484205f4b35e23
Signed-off-by: Divya Singhatwaria <dsinghatwari@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/2126477
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
Reviewed-by: svc-mobile-misra <svc-mobile-misra@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Divya Singhatwaria
2019-05-27 14:57:11 +05:30
committed by mobile promotions
parent 790cb6336e
commit 377e1e8f36

View File

@@ -142,8 +142,11 @@ struct bit_token *nvgpu_bios_get_bit_token(struct gk20a *g, u8 token_id)
case NVGPU_BIOS_VIRT_TOKEN:
token = g->bios->virt_token;
break;
}
default:
token = NULL;
break;
}
return token;
}