mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 01:50:07 +03:00
MISRA rule 16.3 states all switch clause to have break statement. Fixing the missing break statement for default case. Two consecutive labels without statement need not have break. So no break is added for case without any statement. This also makes the switch statement well-formed covering 16.1. Since the function is too long, created a new function to calculate the slope. JIRA NVGPU-1507 Change-Id: I22b02de81ac3f605a19bf773ee475c40e7a77c2b Signed-off-by: Abdul Salam <absalam@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2022749 Reviewed-by: svc-misra-checker <svc-misra-checker@nvidia.com> Reviewed-by: Adeel Raza <araza@nvidia.com> Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>