[PATCH 7/9] nvme-core: cleanup for nvme_set_latency_tolerance

Sagi Grimberg sagi at grimberg.me
Thu Mar 23 01:06:30 PDT 2023


> Remove the extra line before default in the swicth and add a break
> at the end of default in the swicth which is a standard practice.

Reviewed-by: Sagi Grimberg <sagi at grimberg.me>


> 
> Signed-off-by: Chaitanya Kulkarni <kch at nvidia.com>
> ---
>   drivers/nvme/host/core.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c
> index 06dac97c5b0f..fdcba1dc583d 100644
> --- a/drivers/nvme/host/core.c
> +++ b/drivers/nvme/host/core.c
> @@ -2594,9 +2594,9 @@ static void nvme_set_latency_tolerance(struct device *dev, s32 val)
>   	case PM_QOS_LATENCY_ANY:
>   		latency = U64_MAX;
>   		break;
> -
>   	default:
>   		latency = val;
> +		break;
>   	}
>   
>   	if (ctrl->ps_max_latency_us != latency) {



More information about the Linux-nvme mailing list