mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-24 18:19:56 -04:00
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>
This commit is contained in:
committed by
Christoph Hellwig
parent
6fe240bc0d
commit
2ce525d40a
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user