From patchwork Tue Sep 2 19:23:45 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gustavo Padovan X-Patchwork-Id: 4827861 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 389F7C033A for ; Tue, 2 Sep 2014 19:23:58 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6C1C82017D for ; Tue, 2 Sep 2014 19:23:57 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id A776A201BC for ; Tue, 2 Sep 2014 19:23:56 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E83906E301; Tue, 2 Sep 2014 12:23:54 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-yk0-f181.google.com (mail-yk0-f181.google.com [209.85.160.181]) by gabe.freedesktop.org (Postfix) with ESMTP id 52A606E301; Tue, 2 Sep 2014 12:23:54 -0700 (PDT) Received: by mail-yk0-f181.google.com with SMTP id 131so4389977ykp.12 for ; Tue, 02 Sep 2014 12:23:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=tfdrJ+f2Y9KhV04p9gI4waqEMkaWthcRrBduh8vdjbw=; b=JCJ0JBYfDVUCiYQ5vYxuzL8vqSjqr5so2GNEdkkZECFrDju5VPTwby/Oow15COvpfW jVwVOYR4C6EbtXK8DAmuZ9Paap3J1qdff37dD6fIWJGK8no7SIhtbPCplV8+i0PwQyO/ XQOnd0PQeWHY2/QiizBM3z3lTXn2vkDoRV5LyCxEi+F1j8bZUs1bbkVckhetD8OslPd2 JaezLFnq5Rv5fiIes3FkeRSIwAHDrF48RnlWNlMZI/D+vjEcl0UYwLeXM4GFYa7vU9Wu WE0dok0/Eb0F4P9yMgZJjpr9sRQG6K9qTetgtRUlEnDBIgU2OFOL455eb0x6Lv2/K1HW 92Rw== X-Received: by 10.236.154.134 with SMTP id h6mr279493yhk.190.1409685833828; Tue, 02 Sep 2014 12:23:53 -0700 (PDT) Received: from localhost.localdomain (200-158-3-16.dsl.telesp.net.br. [200.158.3.16]) by mx.google.com with ESMTPSA id d36sm6100071yho.20.2014.09.02.12.23.51 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 02 Sep 2014 12:23:53 -0700 (PDT) From: Gustavo Padovan To: intel-gfx@lists.freedesktop.org Subject: [PATCH -v2 2/4] drm/i915: trivial: remove unneed set to NULL Date: Tue, 2 Sep 2014 16:23:45 -0300 Message-Id: <1409685827-29067-2-git-send-email-gustavo@padovan.org> X-Mailer: git-send-email 1.9.3 In-Reply-To: <1409685827-29067-1-git-send-email-gustavo@padovan.org> References: <1409685827-29067-1-git-send-email-gustavo@padovan.org> Cc: Gustavo Padovan , dri-devel@lists.freedesktop.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.15 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-Spam-Status: No, score=-5.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Gustavo Padovan At this point of the code the obj var is already NULL, so we don't need to set it again to NULL. Signed-off-by: Gustavo Padovan --- drivers/gpu/drm/i915/intel_display.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index b2e4eac..05937fe 100644 --- a/drivers/gpu/drm/i915/intel_display.c +++ b/drivers/gpu/drm/i915/intel_display.c @@ -8253,7 +8253,6 @@ static int intel_crtc_cursor_set_obj(struct drm_crtc *crtc, if (!obj) { DRM_DEBUG_KMS("cursor off\n"); addr = 0; - obj = NULL; mutex_lock(&dev->struct_mutex); goto finish; }