cxl/mbox: Remove useless cast in cxl_mem_create_range_info()
authorAlison Schofield <alison.schofield@intel.com>
Tue, 15 Aug 2023 17:20:52 +0000 (10:20 -0700)
committerDan Williams <dan.j.williams@intel.com>
Tue, 24 Oct 2023 23:04:10 +0000 (16:04 -0700)
commit9214c9d56c470b183f3d374c7aed7c8756f80fd9
tree9ffada672f21144b93a2083dd5a09192c628af59
parent1b27978d69670282a1586465de640cff363a34d8
cxl/mbox: Remove useless cast in cxl_mem_create_range_info()

DEFINE_RES_MEM() is a wrapper around the DEFINE_RES_NAMED() macro
which already has the (struct resource) for the compound literal.
The user of the macro should not repeat the cast.

Cleans up these sparse warnings:
drivers/cxl/core/mbox.c:1184:18: warning: cast to non-scalar
drivers/cxl/core/mbox.c:1184:18: warning: cast from non-scalar

Fixes: 52c4d11f1dce ("resource: Convert DEFINE_RES_NAMED() to be compound literal")
Signed-off-by: Alison Schofield <alison.schofield@intel.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Davidlohr Bueso <dave@stgolabs.net>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20230815172052.22514-1-alison.schofield@intel.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/cxl/core/mbox.c