From nobody Wed May 1 13:02:30 2024 Delivered-To: importer@patchew.org Received-SPF: none (zohomail.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; spf=none (zohomail.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org ARC-Seal: i=1; a=rsa-sha256; t=1582916310; cv=none; d=zohomail.com; s=zohoarc; b=jL4UGs57ZpAsKqiYHMMA3saAQj6cbdZHQjl3dmJo3hwTcBij/FKaACGyrpgKe5yo+q/NWawJ9rwaG9wpunCtU4sYGIVhjTnlmowGAkBFFL7/zgYw1AkWaHvGzWdOguTAvA2dQ52PMn73kG61hDZ0zljyKRU/yd8DTJaIXy1gz10= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1582916310; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=GeEAX4MGGrKy3Xhzy/6yOWEa46nNlmmnnb/5BKmgdzw=; b=LbAqUiEPHqHESVL7Gdx5qe3HXdg8Yhjrxvy5h0KoUa2GoKNWHMOcUdgNsQddD7biX4f2UMmWjg6AIDNh/YSqF1yURmDCwQVtwTtVUEiTPP7tmEqlkHfQS3k+VanvhUUimCNf6wjEASwsCtHHnMHIszU1iRfzU+evy6lDKcy3tcc= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=none (zohomail.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1582916310276331.59792988288257; Fri, 28 Feb 2020 10:58:30 -0800 (PST) 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 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) 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) X-Inumbo-ID: 3aea4138-5a5c-11ea-9a04-12813bfff9fa 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) 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 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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 =3D NULL; struct grant_table *lgt, *rgt; grant_ref_t ref; - struct vcpu *led; grant_handle_t handle; mfn_t mfn; struct page_info *pg =3D NULL; @@ -957,8 +956,7 @@ map_grant_ref( uint16_t *status; bool_t need_iommu; =20 - led =3D current; - ld =3D led->domain; + ld =3D current->domain; =20 if ( unlikely((op->flags & (GNTMAP_device_map|GNTMAP_host_map)) =3D=3D= 0) ) { --=20 2.17.1 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel