From patchwork Thu Aug 28 17:40:06 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gustavo Padovan X-Patchwork-Id: 4805881 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 1FC6E9F2A9 for ; Thu, 28 Aug 2014 17:40:27 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 02C8D20142 for ; Thu, 28 Aug 2014 17:40:25 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id A949320155 for ; Thu, 28 Aug 2014 17:40:23 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 43C656E0AB; Thu, 28 Aug 2014 10:40:22 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-yk0-f182.google.com (mail-yk0-f182.google.com [209.85.160.182]) by gabe.freedesktop.org (Postfix) with ESMTP id 3F0BD6E270; Thu, 28 Aug 2014 10:40:21 -0700 (PDT) Received: by mail-yk0-f182.google.com with SMTP id 19so694055ykq.27 for ; Thu, 28 Aug 2014 10:40:20 -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=iac0CtdvTx+08VKv3dWNJlF4ICNAp7m3bMmub7B7ARyQDoT/H8hImn6UWe2P0NBNqS BSgfnEDomwsOXvFlbHFzlRjUMWXdOT7VHVQNI/hkc7KhUOB2L1nbIWD/xfK6gEQrDcw0 mX+UgQlzKpTE15A8yYsEm8Fm41i7Kpvt5CkALAMv+n27ZS8Qm6cW7N1DcF6Ou5+fxkXs z1/lKstzGZ92xolmQ/GlfWYHvs0/48tvGwwqdjMeR1eKeASN3bIFypRz7z7Vm3nxRoFS +uD8OHu4NiRAAT6zqlxh2tQQYxwPI4LxC5StLCbeqb1h+XsMjD+xtZT4usC+L/sRRSv8 z6FQ== X-Received: by 10.236.2.164 with SMTP id 24mr7290110yhf.126.1409247620620; Thu, 28 Aug 2014 10:40:20 -0700 (PDT) Received: from localhost.localdomain ([187.10.18.246]) by mx.google.com with ESMTPSA id a14sm2020073yho.33.2014.08.28.10.40.18 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Aug 2014 10:40:19 -0700 (PDT) From: Gustavo Padovan To: intel-gfx@lists.freedesktop.org Subject: [PATCH 2/9] drm/i915: trivial: remove unneed set to NULL Date: Thu, 28 Aug 2014 14:40:06 -0300 Message-Id: <1409247613-14232-2-git-send-email-gustavo@padovan.org> X-Mailer: git-send-email 1.9.3 In-Reply-To: <1409247613-14232-1-git-send-email-gustavo@padovan.org> References: <1409247613-14232-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=-4.2 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 Reviewed-by: Jani Nikula --- 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; }