mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-05-14 11:42:57 +00: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:
parent
6fe240bc0d
commit
2ce525d40a
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue