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
2ce525d4 6fe240bc

+2 -2
+2 -2
drivers/nvme/host/apple.c
··· 209 209 { 210 210 if (q->is_adminq) 211 211 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); 214 214 } 215 215 216 216 static unsigned int apple_nvme_queue_depth(struct apple_nvme_queue *q)