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
2ce525d40a
commit
cf806e3ab1
@@ -217,8 +217,8 @@ static unsigned int apple_nvme_queue_depth(struct apple_nvme_queue *q)
|
|||||||
{
|
{
|
||||||
if (q->is_adminq)
|
if (q->is_adminq)
|
||||||
return APPLE_NVME_AQ_DEPTH;
|
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)
|
static void apple_nvme_rtkit_crashed(void *cookie)
|
||||||
|
|||||||
Reference in New Issue
Block a user