projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2ce525d
)
nvme-apple: return directly instead of else
author
Chaitanya Kulkarni
<kch@nvidia.com>
Mon, 27 Mar 2023 05:48:38 +0000
(22:48 -0700)
committer
Christoph 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
patch
|
blob
|
history
diff --git
a/drivers/nvme/host/apple.c
b/drivers/nvme/host/apple.c
index 484112f8cb27e8953ad2684d0933966594281b7f..596bb11eeba5a9d0a4d1637f2c061775956bb84e 100644
(file)
--- 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)