Skip to content

Commit 2ce525d

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 6fe240b commit 2ce525d

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
@@ -209,8 +209,8 @@ static inline struct apple_nvme *queue_to_apple_nvme(struct apple_nvme_queue *q)
209209
{
210210
if (q->is_adminq)
211211
return container_of(q, struct apple_nvme, adminq);
212-
else
213-
return container_of(q, struct apple_nvme, ioq);
212+
213+
return container_of(q, struct apple_nvme, ioq);
214214
}
215215

216216
static unsigned int apple_nvme_queue_depth(struct apple_nvme_queue *q)

0 commit comments

Comments
 (0)