Skip to content

Commit cf806e3

Browse files
Chaitanya KulkarniChristoph Hellwig
authored andcommitted
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>
1 parent 2ce525d commit cf806e3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/nvme/host/apple.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,8 +217,8 @@ static unsigned int apple_nvme_queue_depth(struct apple_nvme_queue *q)
217217
{
218218
if (q->is_adminq)
219219
return APPLE_NVME_AQ_DEPTH;
220-
else
221-
return APPLE_ANS_MAX_QUEUE_DEPTH;
220+
221+
return APPLE_ANS_MAX_QUEUE_DEPTH;
222222
}
223223

224224
static void apple_nvme_rtkit_crashed(void *cookie)

0 commit comments

Comments
 (0)