diff options
author | Chaitanya Kulkarni <kch@nvidia.com> | 2023-03-26 22:48:38 -0700 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2023-04-13 08:55:06 +0200 |
commit | cf806e3ab1c1878e357fd91205e020ea0dfdafe6 (patch) | |
tree | 7c833702b323a9eee072deec19feddd9477a2932 /drivers/nvme/host | |
parent | 2ce525d40aa61c87884b100995e59ba68b4ea059 (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')
-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 484112f8cb27..596bb11eeba5 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) |