Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp4897629imm; Tue, 18 Sep 2018 00:38:26 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbaiK+zpArdJ24eSE2nixW6wPF46YS1vp9rbAQUiZygziAq5J+6ebJahjeSlunWBBALT7eN X-Received: by 2002:a63:e54b:: with SMTP id z11-v6mr26176544pgj.328.1537256306055; Tue, 18 Sep 2018 00:38:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537256306; cv=none; d=google.com; s=arc-20160816; b=z+KVIaiNkHtsru4ijGjCoPi+aRf/dZrDFmV/Iyh7tfyr6E8nLD63XHrKxfY6Y14YLz 6HS+NMwEAZDDHVHH1azkgjszpOCaq78bD8gUJPEoD6RxIuRxl4UOxXMXpRIzhpSoGkoL djI3t77xHrWqFCKQE3LfZqxClX6NuMqKm9UGauy7+ZJx/4qnwDXSty9/2aUC61xDSuDP C+ZPSLsyX8iZRPx08IFzxEtEIEWqbXiq6VrRP1dqmivYxGqVmYo2OPPibfx+rof04Oyt 1P0QX1NpILd2RJir80hX1dbb6a26SDnliK0bRL3Ory5NIgD/FA6gCM29yJMvqueERU8l sjvg== 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; bh=2CD6SyBPde8lIWJ+tJVvb9FWMBJYstsG0fnY0GItPK0=; b=BBiOzX6grtekoW1rqEjeb0wDKQDP4BUciJvGTNZzv5eEDr7S/EHMbkFVRQIw9n8/4J T3CUyNvVRFbndW75SqzKbu2PwMSu15M2jSNWMiZC73J9aMDP0zA0QHHmVU5/7mlw36mL xEZgIykdaz6SuexFIOLq3E4BleTWQNlTO9DySsYR571x/W1GoGYBvo8Ahd0vfkBQ8iNR jr2l760uU4QhAWpGggUMi3LCkt2+ekimyKFCUu/R4AftXoC688XHUK9L53jZ/5/bGPmh +ePRMcFoTjY2mNjiBX0J51aV089fgxPiq1yDUrWLSB89Tt9PkQulske5EMB+ybZbHJHE L8QA== 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 w8-v6si17683291pgw.647.2018.09.18.00.38.10; Tue, 18 Sep 2018 00:38:26 -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 S1729089AbeIRNJI (ORCPT + 99 others); Tue, 18 Sep 2018 09:09:08 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:12176 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727404AbeIRNJH (ORCPT ); Tue, 18 Sep 2018 09:09:07 -0400 Received: from DGGEMS414-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 8B7C556D9BB; Tue, 18 Sep 2018 15:37:42 +0800 (CST) Received: from linux-ibm.site (10.175.102.37) by DGGEMS414-HUB.china.huawei.com (10.3.19.214) with Microsoft SMTP Server id 14.3.399.0; Tue, 18 Sep 2018 15:37:39 +0800 From: zhong jiang To: , CC: , Subject: [PATCH] drm: sun4i: Fix a uninitialized variable warning. Date: Tue, 18 Sep 2018 15:25:20 +0800 Message-ID: <1537255520-41614-1-git-send-email-zhongjiang@huawei.com> X-Mailer: git-send-email 1.7.12.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.102.37] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following compile warning: drivers/gpu/drm/sun4i/sun4i_tcon.c:1088: warning: 'has_lvds_alt' may be used uninitialized in this function [-Wmaybe-uninitialized] bool has_lvds_rst, has_lvds_alt, can_lvds; Signed-off-by: zhong jiang --- drivers/gpu/drm/sun4i/sun4i_tcon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/sun4i/sun4i_tcon.c b/drivers/gpu/drm/sun4i/sun4i_tcon.c index c78cd35..563cc8f 100644 --- a/drivers/gpu/drm/sun4i/sun4i_tcon.c +++ b/drivers/gpu/drm/sun4i/sun4i_tcon.c @@ -1086,7 +1086,7 @@ static int sun4i_tcon_bind(struct device *dev, struct device *master, struct device_node *remote; struct sun4i_tcon *tcon; struct reset_control *edp_rstc; - bool has_lvds_rst, has_lvds_alt, can_lvds; + bool has_lvds_rst, has_lvds_alt = false, can_lvds; int ret; engine = sun4i_tcon_find_engine(drv, dev->of_node); -- 1.7.12.4