From: Chaitanya Kulkarni Date: Mon, 27 Mar 2023 05:48:38 +0000 (-0700) Subject: nvme-apple: return directly instead of else X-Git-Tag: v6.4-rc1~136^2~11^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cf806e3ab1c1878e357fd91205e020ea0dfdafe6;p=thirdparty%2Fkernel%2Flinux.git nvme-apple: return directly instead of else There is no need for the else when direct return is used at the end of the function. Signed-off-by: Chaitanya Kulkarni Reviewed-by: Eric Curtin Signed-off-by: Christoph Hellwig --- diff --git a/drivers/nvme/host/apple.c b/drivers/nvme/host/apple.c index 484112f8cb27e..596bb11eeba5a 100644 --- a/drivers/nvme/host/apple.c +++ b/drivers/nvme/host/apple.c @@ -217,8 +217,8 @@ static unsigned int apple_nvme_queue_depth(struct apple_nvme_queue *q) { if (q->is_adminq) return APPLE_NVME_AQ_DEPTH; - else - return APPLE_ANS_MAX_QUEUE_DEPTH; + + return APPLE_ANS_MAX_QUEUE_DEPTH; } static void apple_nvme_rtkit_crashed(void *cookie)