Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2985818ybt; Mon, 29 Jun 2020 12:09:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxLFbHfg/J/8E2maApzFh8jKp+LFQTgqdebv7YS3fSnt8rjmdHfxpbPAIBPl+k859UytEUh X-Received: by 2002:aa7:d845:: with SMTP id f5mr18716187eds.162.1593457775837; Mon, 29 Jun 2020 12:09:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593457775; cv=none; d=google.com; s=arc-20160816; b=ozDGUTDuSNrEEvwGVHu9jVxbNdtYCJuzO/szQuTqcXzXOdr7RKid+nhjaVUjShfcAP X+eeUWGkwErQSSTKuGzYtZ8EsVGtgy75u3Lh1jq9Jyi+/lYnq8sMGdo5FQcRgxGYyYHU 76bF/u3ro5GgI+wmZ81CXTn0GQrY2imBsY0xk3qUgVeEWnX1oOUUeYSguUiTMwP3xfdw FMbagNUBeAeWRFwxB9uiF3kWtFjvkZIuhiSfj+nx31wDaiwk8iTW1r7SjnKCX81STVKu 4mbIwB+Mmpb7s+6o8ef78fbHUPJLbU54bRXV7Yvujn7BTDsM+jaWUg4kqkgd5/zSmHVP OZPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=MUpR3vxb/3x7pTgYotaCnl85fDRP0t+XWiQf/ROkfg0=; b=f5zt/gPIUvYihnfz+z783IX6gJueuC4FKwsncnsvx4O2ORuT+G8R4GROdh544pTkkM sK1cVDMvn9ldybUVNgGTbLriOxDxcM5fIe94zW5/43yAvhCGK2uZ5n9LfesBtFqfhyEd lQL95Rtn857ZCtjVtgBV1aMbVf1w1uezGhPLGrIajeNy/0FdSlxg6AOCNodrPDQWCivj 9fBA6jnYqz9V4xNJ5X0O2Bk8FLyvde8AUmh1myRFqOBgYkSxBspT04EPApJHCgBmOZ8k A/7CtYITAvs1ZayJkX5LiC/TJV0jkp7v0l5FxTUt7hLPHfYC9glShKR5ie2FrYRMdw+Q SgCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=DOW+nDlK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bf28si268203edb.312.2020.06.29.12.09.11; Mon, 29 Jun 2020 12:09:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=DOW+nDlK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730761AbgF2TIt (ORCPT + 99 others); Mon, 29 Jun 2020 15:08:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41722 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730515AbgF2TCm (ORCPT ); Mon, 29 Jun 2020 15:02:42 -0400 Received: from casper.infradead.org (unknown [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9D271C02A555; Mon, 29 Jun 2020 06:04:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=MUpR3vxb/3x7pTgYotaCnl85fDRP0t+XWiQf/ROkfg0=; b=DOW+nDlKUSsiGmK5DH33nDnu+G WQD2B/v3z8dljEfR8h8SR5xiWTW0ipG8Wiz7Gp4w3ZkYZAnLqHLVRsBh5RdKZ7JcCu+FqDm5lqGms WIOQU9BqRysseIn7+alAM3ekaP6gzbrQvU9qIyhm0sTrYtrdSrmbi7ys3nIZaieB7dkOdHIsGgvZ+ i0ZxE45pWYhPHfkPiBOpqTXdf4I/frWWCsctA+aiESgiY8Mkw3YG/6U7BI0NIeKcFOb6LMXK8GLix gPLLcd1n+bfPSALMaQyoZB4IBXEZEXNxBWcAgu/4T+YMv0eHMzD5eCJbRYSF8BDoQW3wVUsCJgzWH +4JMo08Q==; Received: from [2001:4bb8:184:76e3:c71:f334:376b:cf5f] (helo=localhost) by casper.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1jptSA-0004Xh-2X; Mon, 29 Jun 2020 13:04:06 +0000 From: Christoph Hellwig To: =?UTF-8?q?Bj=C3=B6rn=20T=C3=B6pel?= Cc: Magnus Karlsson , Jonathan Lemon , iommu@lists.linux-foundation.org, netdev@vger.kernel.org, bpf@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/4] xsk: remove a double pool->dev assignment in xp_dma_map Date: Mon, 29 Jun 2020 15:03:58 +0200 Message-Id: <20200629130359.2690853-4-hch@lst.de> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200629130359.2690853-1-hch@lst.de> References: <20200629130359.2690853-1-hch@lst.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ->dev is already assigned at the top of the function, remove the duplicate one at the end. Signed-off-by: Christoph Hellwig --- net/xdp/xsk_buff_pool.c | 1 - 1 file changed, 1 deletion(-) diff --git a/net/xdp/xsk_buff_pool.c b/net/xdp/xsk_buff_pool.c index 9fe84c797a7060..6733e2c59e4835 100644 --- a/net/xdp/xsk_buff_pool.c +++ b/net/xdp/xsk_buff_pool.c @@ -193,7 +193,6 @@ int xp_dma_map(struct xsk_buff_pool *pool, struct device *dev, if (pool->unaligned) xp_check_dma_contiguity(pool); - pool->dev = dev; pool->dma_need_sync = !xp_check_cheap_dma(pool); return 0; } -- 2.26.2