Value stored in size_cells is never read because we're only interested
in retrieving gbase address of shmem region for which we only need
address cells.
Signed-off-by: Michal Orzel <michal.orzel@amd.com>
Reviewed-by: Bertrand Marquis <bertrand.marquis@arm.com>
const struct membank *boot_shm_bank;
const struct dt_property *prop;
const __be32 *cells;
- uint32_t addr_cells, size_cells;
+ uint32_t addr_cells;
paddr_t gbase, pbase, psize;
int ret = 0;
unsigned int i;
* pbase is optional.
*/
addr_cells = dt_n_addr_cells(shm_node);
- size_cells = dt_n_size_cells(shm_node);
prop = dt_find_property(shm_node, "xen,shared-mem", NULL);
BUG_ON(!prop);
cells = (const __be32 *)prop->value;