Received: by 10.192.165.156 with SMTP id m28csp717879imm; Thu, 19 Apr 2018 06:29:51 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+cYjziVbsamEUEMPTNOWvTbn2asi8IyaDDS+jhLIIlxgy80qF/Hstb6X9dWeRk3WByZn+t X-Received: by 2002:a17:902:bc4b:: with SMTP id t11-v6mr6217286plz.343.1524144591419; Thu, 19 Apr 2018 06:29:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524144591; cv=none; d=google.com; s=arc-20160816; b=uY/ZHF1U+HqRRQpXMB68nYsj4xsNjatS7GnBAeV1gqYJ+vU6sCWYf2BWlAgpB48EfA 5/+T1X6Vs1PmVw38bCsDZD0s15eDcxhvrAsuSV36a7fk9BylF+7YVIC4yG2zif76jbrC xSuTLCucva0SZLhuDMDorL/mdugeFgNddPpi7kzeac/KyS8WmXhSsEaX3EOModUROZBT kPRFSBgLUulU9L498ljPlO5fMusog5wECiKt/SgAnRUacKVRS9tZgtC4nmkjAyRyUBGR ye2PXyrm0lEMtr3FL1E07tk+/UqIR94rjxonSUaXmCtbTjioPZriqF1hvoOOA7TDWvaR pmmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:arc-authentication-results; bh=C2kZ2cQcwlTdhDnK2IWzgCy7ykM/jc5uPIMLdegKcY8=; b=lcCwdX/ajga9Czb+D/R0+WF64Yt4FdsXrVFcEjie2xB+PaKWrxw37f37Eot3hsBOad VOQTBGnmfaCqlEN8SXKKtmknODFO0HMd0+PyESPI4EcxlKz2kTZYsBzwkOmefzG7feum oRtAOa8qBVredgyVjnFAB+01pca0j/FzwtvLcgyNJKW5I7J2Yn6oKO4xXKjNuYeOEy9S 3/Ir2K6vIVcBjh5eXrVZT7DTmBrnofhl1igdOrgLQVUAxixEIamBmdT+rLq7b85hWlBD vyAZLuocsKlhBViwJvGaW7pmiqQHD/Df5haaUZ1ZUmYoaLkG0Ow0SAg0tYGA3rEgGeSb lo7g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d6si3013723pgn.48.2018.04.19.06.29.36; Thu, 19 Apr 2018 06:29:51 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751474AbeDSN2W (ORCPT + 99 others); Thu, 19 Apr 2018 09:28:22 -0400 Received: from mx07-00178001.pphosted.com ([62.209.51.94]:34603 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750858AbeDSN2V (ORCPT ); Thu, 19 Apr 2018 09:28:21 -0400 Received: from pps.filterd (m0046668.ppops.net [127.0.0.1]) by mx07-.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id w3JDEa6c018285; Thu, 19 Apr 2018 15:28:13 +0200 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 2hds2asyqw-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 19 Apr 2018 15:28:13 +0200 Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 844C731; Thu, 19 Apr 2018 13:28:12 +0000 (GMT) Received: from Webmail-eu.st.com (Safex1hubcas21.st.com [10.75.90.44]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 6B6824F6B; Thu, 19 Apr 2018 13:28:12 +0000 (GMT) Received: from SAFEX1HUBCAS22.st.com (10.75.90.93) by SAFEX1HUBCAS21.st.com (10.75.90.44) with Microsoft SMTP Server (TLS) id 14.3.361.1; Thu, 19 Apr 2018 15:28:12 +0200 Received: from localhost (10.201.23.32) by Webmail-ga.st.com (10.75.90.48) with Microsoft SMTP Server (TLS) id 14.3.361.1; Thu, 19 Apr 2018 15:28:11 +0200 From: Philippe Cornu To: Yannick Fertre , Philippe Cornu , Benjamin Gaignard , Vincent Abriou , David Airlie , , CC: Alexandre Torgue Subject: [PATCH] drm/stm: ltdc: fix warnings in ltdc_plane_create() Date: Thu, 19 Apr 2018 15:28:04 +0200 Message-ID: <20180419132804.8317-1-philippe.cornu@st.com> X-Mailer: git-send-email 2.15.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.201.23.32] X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-04-19_05:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org "make C=1" returns 2 warnings in ltdc_plane_create() ("Using plain integer as NULL pointer"). This patch fixes them. Signed-off-by: Philippe Cornu --- drivers/gpu/drm/stm/ltdc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/stm/ltdc.c b/drivers/gpu/drm/stm/ltdc.c index 616191fe98ae..d997a6014d6c 100644 --- a/drivers/gpu/drm/stm/ltdc.c +++ b/drivers/gpu/drm/stm/ltdc.c @@ -860,13 +860,13 @@ static struct drm_plane *ltdc_plane_create(struct drm_device *ddev, plane = devm_kzalloc(dev, sizeof(*plane), GFP_KERNEL); if (!plane) - return 0; + return NULL; ret = drm_universal_plane_init(ddev, plane, possible_crtcs, <dc_plane_funcs, formats, nb_fmt, NULL, type, NULL); if (ret < 0) - return 0; + return NULL; drm_plane_helper_add(plane, <dc_plane_helper_funcs); -- 2.15.1