diff options
author | Chaitanya Kulkarni <kch@nvidia.com> | 2023-03-26 22:48:37 -0700 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2023-04-13 08:55:06 +0200 |
commit | 2ce525d40aa61c87884b100995e59ba68b4ea059 (patch) | |
tree | 0518f7ebc8aa913fa76e75048b7473438e18d2ac /drivers/nvme/host/apple.c | |
parent | 6fe240bc0d97902ecebd811bb22bd85b36d75ee2 (diff) |
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 <kch@nvidia.com>
Reviewed-by: Eric Curtin <ecurtin@redhat.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/nvme/host/apple.c')
-rw-r--r-- | drivers/nvme/host/apple.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) |