[PATCH 5/9] nvme-core: use normal pattern

Keith Busch kbusch at kernel.org
Thu Mar 23 10:50:23 PDT 2023


On Wed, Mar 22, 2023 at 08:36:32PM -0700, Chaitanya Kulkarni wrote:
> Although return is allowed in the switch ... case when function is
> returing void, it creates confusion for future code which is desirable
> pattern to use for switch ... case. Repalce return in the switch with
> break that is standard pattern for the switch ... case.

The previous patch replaced 'break' with 'return', and this one does the
opposite. What's special about a void return that makes this a standard
pattern?



More information about the Linux-nvme mailing list