From patchwork Sun Apr 9 21:48:46 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Engestrom X-Patchwork-Id: 9671791 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id E6FC260365 for ; Sun, 9 Apr 2017 21:49:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C29AD27D4D for ; Sun, 9 Apr 2017 21:49:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A3E7027F88; Sun, 9 Apr 2017 21:49:41 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.7 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id B39B527D4D for ; Sun, 9 Apr 2017 21:49:40 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7B8926E00C; Sun, 9 Apr 2017 21:49:38 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr0-f194.google.com (mail-wr0-f194.google.com [209.85.128.194]) by gabe.freedesktop.org (Postfix) with ESMTPS id 0BD566E00C for ; Sun, 9 Apr 2017 21:49:37 +0000 (UTC) Received: by mail-wr0-f194.google.com with SMTP id u18so18871083wrc.1 for ; Sun, 09 Apr 2017 14:49:36 -0700 (PDT) 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=l5N+NAJFLyp5WE/XjWUG5hS1uEcOlYg8h5WEpbnQhA0=; b=D4VCTKN3SwvF3ZgbrAFgclyVw+mrrDCE+UEbhqllXaAp5liNX8rvfqzRTF6KoA0mth xhw0dM0yHyilY25EdrQlvogbwlNTOXNlp5T2DWwrDxHSYWsWPHZ/xDqhvQwqcPxf3gMp 7pp+4rS5BzcAK3zoPJOuHxnBt/OA4AAVWUccKOaxaQ+PRpaGWJ8F+cZm91a/6twk15aB NOrRNmWVoCZ3VTYt8Ueqg3CDk6ollSWEuS21TfWOyIdM4HcMi8lAoOIcqgH5G5KkXjuy K/ZA8d+F8w+Dau5A2dn30/ujL0PtXDf2TYW7rlWNq4Ce9k5zgE3r7vR3nF7+t5Cyc9xp Vb6w== X-Gm-Message-State: AFeK/H08r5Z1hb+HTcshfaEs5/Xir7VWVAyuvyEJCPntMri80CWrO1faQB6ULsjlqiXIEQ== X-Received: by 10.223.134.152 with SMTP id 24mr37027401wrx.30.1491774575448; Sun, 09 Apr 2017 14:49:35 -0700 (PDT) Received: from localhost.localdomain ([5.80.129.49]) by smtp.gmail.com with ESMTPSA id v14sm14872911wra.65.2017.04.09.14.49.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 09 Apr 2017 14:49:34 -0700 (PDT) From: Eric Engestrom To: dri-devel@lists.freedesktop.org Subject: [PATCH libdrm] intel: remove dead code Date: Sun, 9 Apr 2017 22:48:46 +0100 Message-Id: <20170409214846.9080-1-eric@engestrom.ch> X-Mailer: git-send-email 2.12.2 Cc: Eric Engestrom 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" X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Eric Engestrom --- intel/intel_bufmgr_gem.c | 1 - 1 file changed, 1 deletion(-) diff --git a/intel/intel_bufmgr_gem.c b/intel/intel_bufmgr_gem.c index e260f2dc..45a26da1 100644 --- a/intel/intel_bufmgr_gem.c +++ b/intel/intel_bufmgr_gem.c @@ -655,15 +655,14 @@ drm_intel_gem_bo_busy(drm_intel_bo *bo) ret = drmIoctl(bufmgr_gem->fd, DRM_IOCTL_I915_GEM_BUSY, &busy); if (ret == 0) { bo_gem->idle = !busy.busy; return busy.busy; } else { return false; } - return (ret == 0 && busy.busy); } static int drm_intel_gem_bo_madvise_internal(drm_intel_bufmgr_gem *bufmgr_gem, drm_intel_bo_gem *bo_gem, int state) { struct drm_i915_gem_madvise madv;