The variable "d" is declared multiple times within do_memory_op.
The subsequent declaration are not useful because the top one is never
used. So drop them.
Signed-off-by: Julien Grall <julien.grall@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
case XENMEM_add_to_physmap_batch:
{
struct xen_add_to_physmap_batch xatpb;
- struct domain *d;
BUILD_BUG_ON((typeof(xatpb.size))-1 >
(UINT_MAX >> MEMOP_EXTENT_SHIFT));
{
struct xen_remove_from_physmap xrfp;
struct page_info *page;
- struct domain *d;
if ( unlikely(start_extent) )
return -ENOSYS;
case XENMEM_get_vnumainfo:
{
struct xen_vnuma_topology_info topology;
- struct domain *d;
unsigned int dom_vnodes, dom_vranges, dom_vcpus;
struct vnuma_info tmp;