nvme-apple: return directly instead of else
authorChaitanya Kulkarni <kch@nvidia.com>
Mon, 27 Mar 2023 05:48:37 +0000 (22:48 -0700)
committerChristoph Hellwig <hch@lst.de>
Thu, 13 Apr 2023 06:55:06 +0000 (08:55 +0200)
There is no need for the else when direct return is used at the end of
the function.

Signed-off-by: Chaitanya Kulkarni <kch@nvidia.com>
Reviewed-by: Eric Curtin <ecurtin@redhat.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/apple.c

index b317ce6..484112f 100644 (file)
@@ -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)