From patchwork Fri Feb 28 18:57:51 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 11413191 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2C07D1580 for ; Fri, 28 Feb 2020 18:59:01 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0EFB02468E for ; Fri, 28 Feb 2020 18:59:01 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0EFB02468E Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=xen.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1j7kpi-0004IR-HI; Fri, 28 Feb 2020 18:57:58 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1j7kph-0004IB-6k for xen-devel@lists.xenproject.org; Fri, 28 Feb 2020 18:57:57 +0000 X-Inumbo-ID: 3aea4138-5a5c-11ea-9a04-12813bfff9fa Received: from mail-ed1-f66.google.com (unknown [209.85.208.66]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id 3aea4138-5a5c-11ea-9a04-12813bfff9fa; Fri, 28 Feb 2020 18:57:56 +0000 (UTC) Received: by mail-ed1-f66.google.com with SMTP id m13so4545871edb.6 for ; Fri, 28 Feb 2020 10:57:56 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=tuZlSR/xp1IKKHCxO2Uqj49/7b5x5uidvyyDYi5ECyc=; b=cbDXYlE7EZui0ovhuWia8wt1sjxBdw77SGA0Y8k9rybBPjAnZW5Nk1lMsdgAiAPqqj Z2MgUaVNG4wCjroJ4bZ1znPz5R8S2MpLoeSSRHW2AP1s8mlXxtJarIWYOOeT3oIMNEcB MPlwYpKCpAtoX36moGs1pe1Q1aRiPZRC+PIsAyrHHoErh4tLC1DAZnb+GVeJ9Syg2juL b3DXLZap17llAGwcOwVctFw7iNFyxwEXMmEMGI9XrWKDBMxag+9owPzaSGyPzQMPldBl 3SnaV4XTCXZSTmKHKyL1ho0p4fcZeYTt4KBcH6S4Y3DZQZQOA6iJheEg4xZsTm4bAEXs /d0w== X-Gm-Message-State: APjAAAVqHLGV+8HWprGITZ2YQEJJZbIrMQzYIs4gHcMMHnLJP+pPSOrc 3hi9eM7FhN3EIABhP1JjvFXw4RSroBsu6Q== X-Google-Smtp-Source: APXvYqxu3W54QJNy27ObEWBNu0h+5a1G1sj+b6Tq73yt8o6o98MrtoxxG6XUcJ6f2iB8frF8mvgqlQ== X-Received: by 2002:a05:6402:311b:: with SMTP id dc27mr5772119edb.36.1582916275455; Fri, 28 Feb 2020 10:57:55 -0800 (PST) Received: from ufe34d9ed68d054.ant.amazon.com (54-240-197-235.amazon.com. [54.240.197.235]) by smtp.gmail.com with ESMTPSA id u13sm442135ejz.69.2020.02.28.10.57.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Feb 2020 10:57:54 -0800 (PST) From: Julien Grall To: xen-devel@lists.xenproject.org Date: Fri, 28 Feb 2020 18:57:51 +0000 Message-Id: <20200228185751.7112-1-julien@xen.org> X-Mailer: git-send-email 2.17.1 Subject: [Xen-devel] [PATCH] xen/grant-table: Remove 'led' variable in map_grant_ref X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Stefano Stabellini , Julien Grall , Wei Liu , Konrad Rzeszutek Wilk , Andrew Cooper , Julien Grall , Ian Jackson , George Dunlap , Jan Beulich MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" From: Julien Grall The name of the variable 'led' is confusing and only used in one place a line after. So remove it. Signed-off-by: Julien Grall --- xen/common/grant_table.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/xen/common/grant_table.c b/xen/common/grant_table.c index 057c78f620..9fd6e60416 100644 --- a/xen/common/grant_table.c +++ b/xen/common/grant_table.c @@ -944,7 +944,6 @@ map_grant_ref( struct domain *ld, *rd, *owner = NULL; struct grant_table *lgt, *rgt; grant_ref_t ref; - struct vcpu *led; grant_handle_t handle; mfn_t mfn; struct page_info *pg = NULL; @@ -957,8 +956,7 @@ map_grant_ref( uint16_t *status; bool_t need_iommu; - led = current; - ld = led->domain; + ld = current->domain; if ( unlikely((op->flags & (GNTMAP_device_map|GNTMAP_host_map)) == 0) ) {