From: Chaitanya Kulkarni Date: Mon, 27 Mar 2023 05:48:37 +0000 (-0700) Subject: nvme-apple: return directly instead of else X-Git-Tag: kvm-6.4-2~99^2~11^2~6 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=2ce525d40aa61c87884b100995e59ba68b4ea059;p=users%2Fdwmw2%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 b317ce6c4ec31..484112f8cb27e 100644 --- a/drivers/nvme/host/apple.c +++ b/drivers/nvme/host/apple.c @@ -209,8 +209,8 @@ static inline struct apple_nvme *queue_to_apple_nvme(struct apple_nvme_queue *q) { if (q->is_adminq) return container_of(q, struct apple_nvme, adminq); - else - return container_of(q, struct apple_nvme, ioq); + + return container_of(q, struct apple_nvme, ioq); } static unsigned int apple_nvme_queue_depth(struct apple_nvme_queue *q)