cxl/core: Use is_endpoint_decoder
authorBen Widawsky <ben.widawsky@intel.com>
Fri, 4 Mar 2022 21:36:45 +0000 (13:36 -0800)
committerDan Williams <dan.j.williams@intel.com>
Tue, 21 Jun 2022 21:09:00 +0000 (14:09 -0700)
commit8ae3cebc1704b9a3ab8398dc7820c37183026bbc
tree0e3958d481271d01bcaf085ffd5c3c83f14aa5ad
parentdb9a3a35d31ea337331f0e6e07e04bcd52642894
cxl/core: Use is_endpoint_decoder

Save some characters and directly check decoder type rather than port
type. There's no need to check if the port is an endpoint port since, by
this point, cxl_endpoint_decoder_alloc() has a specified type.

Reviewed by: Adam Manzanares <a.manzanares@samsung.com>
Signed-off-by: Ben Widawsky <ben.widawsky@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/cxl/core/hdm.c
drivers/cxl/core/port.c
drivers/cxl/cxl.h