From: Chaitanya Kulkarni Date: Mon, 27 Mar 2023 05:48:37 +0000 (-0700) Subject: nvme-apple: return directly instead of else X-Git-Tag: microblaze-v6.6~510^2~27^2~6 X-Git-Url: http://git.monstr.eu/?a=commitdiff_plain;h=2ce525d40aa61c87884b100995e59ba68b4ea059;p=linux-2.6-microblaze.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 b317ce6c4ec3..484112f8cb27 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)