From patchwork Tue Mar 21 08:13:57 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 9636193 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 5A558602CC for ; Tue, 21 Mar 2017 08:15:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4A66327D29 for ; Tue, 21 Mar 2017 08:15:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3F35227F17; Tue, 21 Mar 2017 08:15:08 +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 E51BF27D29 for ; Tue, 21 Mar 2017 08:15:07 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D90696E30E; Tue, 21 Mar 2017 08:14:18 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-wm0-x241.google.com (mail-wm0-x241.google.com [IPv6:2a00:1450:400c:c09::241]) by gabe.freedesktop.org (Postfix) with ESMTPS id 93B3A6E2F6; Tue, 21 Mar 2017 08:14:12 +0000 (UTC) Received: by mail-wm0-x241.google.com with SMTP id n11so1493597wma.0; Tue, 21 Mar 2017 01:14:12 -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=0XtbL4mqMQiUsnbiv4dpT1Z07fH2dD6CqI1mo52oZZI=; b=qe9eNa8NuCtQt5iBye+oePyxFe9Zw1H0LtQFyRvOX4ERXbvrw8uSUDMnutRJm++BTW PQH0E6gghArOVqMauHl9bYq0cM/oBMqgG721G8r9sYJGw0payDjE6IZ+YbMCPkzPBeJ/ twiHKqlZiVrCkojmnomO2VCMi5Vx7cGXdMKKl9Evial6guLNPAYAq1VMKsERFaxOuHn/ dddmHXtXdA0LgHtGInnAS1uPzwoyPaTrEAwMGD/KHT9oplWIZ3m/8LpXzUUoyBCoLqzD rCHanhtyUUSH+vAcDZ8NhjZPN69Ofx/MtJSFAwYj4G7PuLr9l+qyQyfaVP8Kx7p6ul/1 WsOw== 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=0XtbL4mqMQiUsnbiv4dpT1Z07fH2dD6CqI1mo52oZZI=; b=X2OQQr6jljw8eNFOTEZhJhff06B4l/w3kM7S3sT3oI2hN1V/OTrjxn5HpSYeqCxxgQ 2byXLhzZbz20f2Ms7WrzsiZskDz+ZXdElVgd2DoWsS3o5VXN3aYM/6jPwa7I7NMAnjhA kdJWzpOuSUVKRDno+Zs/9nw/c9TnJYqhueox5XniveFwjCrLRtyiyBmWspLyqOG4B9Bf TMm5ghQomXQogXFlVwq21mZ8WOk/Gk6YE1AxveyxzQxb4049POO3Cwk9y+69jtcIh3aQ l8eeU5vMI9LK/2u3weKlQiWz7SebEr1Q8kQMZxeORepaVVZmgTRrO1hdd6yMc1pDt7F2 /PGQ== X-Gm-Message-State: AFeK/H0ofyTXD5aeoJV/zKIImz0NsYbSeqqgrBg16s0Zw8Xfk3tmJVv1lt5ieCXwwJmvJA== X-Received: by 10.28.224.69 with SMTP id x66mr1469710wmg.21.1490084051190; Tue, 21 Mar 2017 01:14:11 -0700 (PDT) Received: from localhost (port-52488.pppoe.wtnet.de. [46.59.205.174]) by smtp.gmail.com with ESMTPSA id r8sm23844830wrb.33.2017.03.21.01.14.10 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 21 Mar 2017 01:14:10 -0700 (PDT) From: Thierry Reding To: Daniel Vetter Date: Tue, 21 Mar 2017 09:13:57 +0100 Message-Id: <20170321081358.27237-10-thierry.reding@gmail.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20170321081358.27237-1-thierry.reding@gmail.com> References: <20170321081358.27237-1-thierry.reding@gmail.com> Cc: John Stultz , intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org Subject: [Intel-gfx] [PATCH v3 09/10] 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. 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 {