From patchwork Wed Mar 29 14:44:00 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 9651749 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 DD5DB602BE for ; Wed, 29 Mar 2017 14:44:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D16E0205FC for ; Wed, 29 Mar 2017 14:44:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C4090284D0; Wed, 29 Mar 2017 14:44:59 +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=-4.1 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=unavailable 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 849E1205FC for ; Wed, 29 Mar 2017 14:44:59 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 414F26E77B; Wed, 29 Mar 2017 14:44:26 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-wr0-x241.google.com (mail-wr0-x241.google.com [IPv6:2a00:1450:400c:c0c::241]) by gabe.freedesktop.org (Postfix) with ESMTPS id DF7B56E765; Wed, 29 Mar 2017 14:44:16 +0000 (UTC) Received: by mail-wr0-x241.google.com with SMTP id w43so3621574wrb.1; Wed, 29 Mar 2017 07:44:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=pSq4suhMROUVbFrcgUGy+0Aq+49YhmBnkatWhI5JF8w=; b=HAn1M9MoKE8C+KA/KJNRg5JodDOiCFVF3qhBuCsJ+7KuJUSf1kOnhW94Vg7rTNUh4S 0pBqVIyQeNK3twWQrrv+Ggtny5DFxD1woF2fZ5JuQSmSVzhxlncvaZq1twIrG9G8tDF4 jWoHFt09bqXS3DZn3vffWfHPziDDqtqMOWDDUxqdrwYR1g6dA3zt0uNv7V9EwP2hdems 0K7xwaY1S63Conxc+MorFNL5rnLR2E1JduG0n7VJaZliBNfGFsGovg8CZv3CmoVmcrMu F3ONBM4DCA7caYBZzLmRtqHcsJTaJzF6MyPv1eMSWXfBpplG0dKWsG5QLpbyLNK8S1uA Hn2A== 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:in-reply-to :references; bh=pSq4suhMROUVbFrcgUGy+0Aq+49YhmBnkatWhI5JF8w=; b=j2K1vCIzb0d+I5UmIQGkDiKOPBkAKm71ZnNV1zXPXeoShzpHAi5x5v5ymQxXNIUj1A 4V8EUBrmcFxumZ6PdGEPG1eJB69tQT3dFtXJlm/WlsDbs4DgCua2cL2lSL67+Hob60J6 Pkia7nZZSoPNs4UibTh+Jj+ckmwwPYxJxk1i/OXV2gVb4pMUVnBkEO6e25L0YPaPDalZ lo3qcaHPRQO6ibiHpdYJKUdYUjKP/805pEvFPdpJoEKMy4x6hDY1KzEC2ZCw3hp2Qgna wvYuuNjp6xFpRX1FpGAgSKil372bdj+SmEaOuosGtkZWuELIARBuHZt9+VSHP6dOk9pi /MMg== X-Gm-Message-State: AFeK/H1OJGnRvDFkVaeTS+1DVcYIBmTKCaVfcBb/JuNNPTBdLtJSXQiIEUPMV2znaemjPQ== X-Received: by 10.28.90.2 with SMTP id o2mr1697115wmb.53.1490798655355; Wed, 29 Mar 2017 07:44:15 -0700 (PDT) Received: from localhost (port-5852.pppoe.wtnet.de. [84.46.22.242]) by smtp.gmail.com with ESMTPSA id z79sm9716615wrc.2.2017.03.29.07.44.14 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 29 Mar 2017 07:44:14 -0700 (PDT) From: Thierry Reding To: Daniel Vetter Date: Wed, 29 Mar 2017 16:44:00 +0200 Message-Id: <20170329144401.1804-11-thierry.reding@gmail.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20170329144401.1804-1-thierry.reding@gmail.com> References: <20170329144401.1804-1-thierry.reding@gmail.com> Cc: John Stultz , intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org Subject: [Intel-gfx] [PATCH v4 10/11] drm/atmel-hlcdc: Remove unnecessary NULL check X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Virus-Scanned: ClamAV using ClamSMTP From: Thierry Reding drm_fbdev_cma_hotplug_event() already checks for NULL pointers before dereferencing, so callers don't need to do that. Reviewed-by: Daniel Vetter Signed-off-by: Thierry Reding --- drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c b/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c index f4a3065f7f51..31443402b9a9 100644 --- a/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c +++ b/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c @@ -450,8 +450,7 @@ static void atmel_hlcdc_fb_output_poll_changed(struct drm_device *dev) { struct atmel_hlcdc_dc *dc = dev->dev_private; - if (dc->fbdev) - drm_fbdev_cma_hotplug_event(dc->fbdev); + drm_fbdev_cma_hotplug_event(dc->fbdev); } struct atmel_hlcdc_dc_commit {