Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Chaitanya Kulkarni and committed by
Christoph Hellwig
cf806e3a 2ce525d4

+2 -2
+2 -2
drivers/nvme/host/apple.c
··· 217 217 { 218 218 if (q->is_adminq) 219 219 return APPLE_NVME_AQ_DEPTH; 220 - else 221 - return APPLE_ANS_MAX_QUEUE_DEPTH; 220 + 221 + return APPLE_ANS_MAX_QUEUE_DEPTH; 222 222 } 223 223 224 224 static void apple_nvme_rtkit_crashed(void *cookie)