From patchwork Wed Nov 1 14:04:24 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liviu Dudau X-Patchwork-Id: 117709 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp934047qgn; Wed, 1 Nov 2017 07:10:21 -0700 (PDT) X-Google-Smtp-Source: ABhQp+RrvOVMIOCEStIX2Ks88i5YWNhGpkwTNtUBpeDnWejQ7831zd2XPU4lEDSraHA6cWfHn9IC X-Received: by 10.98.192.18 with SMTP id x18mr7161706pff.280.1509545421002; Wed, 01 Nov 2017 07:10:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509545420; cv=none; d=google.com; s=arc-20160816; b=sVwagQJxGiM1gOgKaaRdFd10jRy1/QY8ePeSFuzSI1GBKWXQu/h7Us7owYGOpzqSDM LrAVeBygtE8yRowDvqZqaBxfqDyAE50BDXuhm977eW5kKAMrJVcermdQRKoxe0TgsJl1 n7m/bnIMGOqGaSIvtZycPXxjSmnmC9yYaoEKqitZc6vMRV2a4z9mAWxjXS2p3LJ5yh+X Wh+JFztd4jWnukTP9gobdP9oTfQkk/j9+PoxWFazuFpgjqBkYD4R8DX6fbuqCWt0broO 2bDbRJeci/Fw64ipnw6l5GcB1kKu4+Xcayv7LFfdp3Ksztl289PofvQ3E+Tc27cWCfpb kLew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:cc:message-id:date:subject:to:from:delivered-to :arc-authentication-results; bh=R/FdAgRvyq7bUF2VdQr+3MBjDZcsH1anpmH9FxaFVsg=; b=b0ziiTtzvh3sPzfIW60KquNebJenR9+0pff6va7g9+bHk+PIJLiLOy8tDqpJnXi+aH VHIxq9EF+E8kFZQb/rd8croznjlQp9pOv8hbnp8oztndeVjODKHQYnxblzeOs7awNqwV dHNe/y1qw1QWXQ0Fs6tqlgExgCtECEizO+wcsAWEKabOqWJln1BWzsCUaMX4sPgDPhhM AtfFX7awgdSWsN/SPOdjVqzyHpByAoPKqmG3vaLUzjG5mN30XIWSTFc2YGPlX+S2evEp Xcc5keoD6CXlnGvTgJ6rMPNGPQG3QIMJ5A2IIRFNXvUQE9n64oVbJaP41e7kwsU+38AW K3VQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id m124si1151368pgm.684.2017.11.01.07.10.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 01 Nov 2017 07:10:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 3157F6E23B; Wed, 1 Nov 2017 14:10:20 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from cam-smtp0.cambridge.arm.com (fw-tnat.cambridge.arm.com [217.140.96.140]) by gabe.freedesktop.org (Postfix) with ESMTPS id 9F8DA6E23B for ; Wed, 1 Nov 2017 14:10:18 +0000 (UTC) Received: from e110455-lin.cambridge.arm.com (e110455-lin.cambridge.arm.com [10.2.131.60]) by cam-smtp0.cambridge.arm.com (8.13.8/8.13.8) with ESMTP id vA1E4P0v027867; Wed, 1 Nov 2017 14:04:25 GMT From: Liviu Dudau To: Daniel Vetter Subject: [PATCH] drm/drm_vma_manager.c: Remove useless goto statement Date: Wed, 1 Nov 2017 14:04:24 +0000 Message-Id: <20171101140424.2690-1-Liviu.Dudau@arm.com> X-Mailer: git-send-email 2.14.3 Cc: Liviu Dudau , DRI-devel X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Commit db2395eccf08i ("drm: Convert drm_vma_manager to embedded interval-tree in drm_mm") removed a line in drm_vma_offset_add() function that makes checking the result of calling drm_mm_insert_node() and the goto call redundant. Remove them. Fixes: db2395eccf08i ("drm: Convert drm_vma_manager to embedded interval-tree in drm_mm") Cc: Chris Wilson Signed-off-by: Liviu Dudau --- drivers/gpu/drm/drm_vma_manager.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/drm_vma_manager.c b/drivers/gpu/drm/drm_vma_manager.c index 28f1226576f8c..e545a7b2bcafc 100644 --- a/drivers/gpu/drm/drm_vma_manager.c +++ b/drivers/gpu/drm/drm_vma_manager.c @@ -213,8 +213,6 @@ int drm_vma_offset_add(struct drm_vma_offset_manager *mgr, } ret = drm_mm_insert_node(&mgr->vm_addr_space_mm, &node->vm_node, pages); - if (ret) - goto out_unlock; out_unlock: write_unlock(&mgr->vm_lock);