]> git.baikalelectronics.ru Git - kernel.git/commit
md: Replace role magic numbers with defined constants
authorDavid Sloan <david.sloan@eideticom.com>
Thu, 21 Apr 2022 19:45:58 +0000 (13:45 -0600)
committerSong Liu <song@kernel.org>
Mon, 25 Apr 2022 21:22:31 +0000 (14:22 -0700)
commit083d7a1e1b339c5cdc1ddd76975113d4664bb26b
tree26ead87f78795b59dd749bc57ee38d458b483bb6
parent2c04a8d21ff528d63521843d5313b212d75515e0
md: Replace role magic numbers with defined constants

There are several instances where magic numbers are used in md.c instead
of the defined constants in md_p.h. This patch set improves code
readability by replacing all occurrences of 0xffff, 0xfffe, and 0xfffd when
relating to md roles with their equivalent defined constant.

Signed-off-by: David Sloan <david.sloan@eideticom.com>
Reviewed-by: Logan Gunthorpe <logang@deltatee.com>
Signed-off-by: Song Liu <song@kernel.org>
drivers/md/md.c