Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp8065310ioo; Fri, 3 Jun 2022 21:47:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzo0Cz52NYOCbfcnWAQ9E5ytv5ITmEBx4jvGN4PWEfWo0ihzAJNc3KAIWqU4eQ8U2xMWak3 X-Received: by 2002:a63:504:0:b0:3fc:607b:9750 with SMTP id 4-20020a630504000000b003fc607b9750mr11754396pgf.604.1654318020589; Fri, 03 Jun 2022 21:47:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654318020; cv=none; d=google.com; s=arc-20160816; b=QjiGpYNViuY268gHa/6BUwbfIlagv1lEmEpndslrMziUlVK1zzAzqG00DM+G12hwIH uRPNRExly0mW48Yh17q7O5sYsl/aeKHj7le3wjq8mSrA+iPmNIBDSZakjHXZIhZQh/Dv YNBfZuAuquMMqnbuz2npSQwf2JDBmt+5MOnyUzzK31DhdtiZ+Nklw96NmnZoDp6dkCPx g0/DtbaRLT6WL+wG+zJ2IE8tiz0nQB4HzfFoy72TND5z9+09a+oZOGI+z1Gwypj5DqqY GXMjgliTrStNJddG9waZippI4TQShgWGz++TsNDCAjG8/BhWCZXV2sBY34nZ7bjo4p0Y IsVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:to:from:dkim-signature; bh=e7pjrqv87DPLuFOtrjphDGSnoNc9nvojEopc8c3+tCs=; b=yqCRECSvpqAgCKaARLUT1XFD079xJtXtqvQE0EPtFlxcrivyGBKerkpWOdnDFroh0W XO0Yvr6pkmeT7UVwqMa3hqvYDuFTsrrpoPxBO6LRPTO0jttYYukv0D/LsQw2aNP2hEmm I5cnoX9zHj+L2jadiK3BbI95s+fitOzgFG2uhAYqSu0OQazJD5POfpznRus3GXQQeiFG 8QbEf01mxiuSCAgyZzcLwF5kgHvOPx5uLTycjNyhMxfP1cyIrMKTFsxTPq6GlpzYDGBY C5Ss8MkcyW09kBYFYcQIU7iRAgsAzYP9s7cQ+JbUI1hcDo7LkD1Y+nKI4jxyaKobUi5M DSsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=PyO1QybQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e24-20020a631e18000000b003c668342553si12279395pge.351.2022.06.03.21.46.37; Fri, 03 Jun 2022 21:47:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=PyO1QybQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245379AbiFCPMX (ORCPT + 99 others); Fri, 3 Jun 2022 11:12:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59388 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245306AbiFCPMV (ORCPT ); Fri, 3 Jun 2022 11:12:21 -0400 Received: from mx07-00178001.pphosted.com (mx08-00178001.pphosted.com [91.207.212.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 52E4111C15 for ; Fri, 3 Jun 2022 08:12:19 -0700 (PDT) Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 253AQph1032463; Fri, 3 Jun 2022 17:11:26 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=from : to : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=selector1; bh=e7pjrqv87DPLuFOtrjphDGSnoNc9nvojEopc8c3+tCs=; b=PyO1QybQv/tDV+iLPyTv0umboVADZZUk801bnXbZMbFEkE695MhQKW48keYFvZFW5hCK Lr4f+lsHJrR2Le3QoLALN7luhA0yaDlX/sv9riosJP1Gp83H870fslA1l6lzvK9yEJ3K Z6NNh4w+UEcEyFoYgSh3AyBfUJhaJ3Dme4f2JbceHsIf0uU3DL2D6JJJMVn0Yfyj9b/M MZBjng12IeEpnHj8eqTv1BiajJ8PGLBLYAYRCph7uq6+tg65YejaUjFVTV7aMnkTinSh XGIo9zNFxUtX7wH3wjyt9Z/TcPIqH1p5uxbqq6pBflgX5pPITcP1LaMAP+SvvYmd55rg ng== Received: from beta.dmz-ap.st.com (beta.dmz-ap.st.com [138.198.100.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3get03re8t-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 03 Jun 2022 17:11:26 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-ap.st.com (STMicroelectronics) with ESMTP id 9A0C140103; Fri, 3 Jun 2022 15:44:12 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id B14A721ED29; Fri, 3 Jun 2022 15:43:39 +0200 (CEST) Received: from localhost (10.75.127.51) by SHFDAG1NODE1.st.com (10.75.129.69) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2308.20; Fri, 3 Jun 2022 15:43:39 +0200 From: Yannick Fertre To: Yannick Fertre , Philippe Cornu , Raphael Gallais-Pou , David Airlie , Daniel Vetter , Maxime Coquelin , Alexandre Torgue , , , , Subject: [PATCH] drm/stm: ltdc: fix various coding-style warnings Date: Fri, 3 Jun 2022 15:43:34 +0200 Message-ID: <20220603134334.592805-1-yannick.fertre@foss.st.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.75.127.51] X-ClientProxiedBy: SFHDAG2NODE3.st.com (10.75.127.6) To SHFDAG1NODE1.st.com (10.75.129.69) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.874,Hydra:6.0.517,FMLib:17.11.64.514 definitions=2022-06-03_05,2022-06-03_01,2022-02-23_01 X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix issues reported by checkpatch.pl: - Braces {} should be used on all arms - Blank lines Signed-off-by: Yannick Fertre --- drivers/gpu/drm/stm/ltdc.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/stm/ltdc.c b/drivers/gpu/drm/stm/ltdc.c index a4098aaff243..6a9f613839b5 100644 --- a/drivers/gpu/drm/stm/ltdc.c +++ b/drivers/gpu/drm/stm/ltdc.c @@ -908,9 +908,9 @@ static void ltdc_crtc_mode_set_nofb(struct drm_crtc *crtc) drm_connector_list_iter_end(&iter); } - if (bridge && bridge->timings) + if (bridge && bridge->timings) { bus_flags = bridge->timings->input_bus_flags; - else if (connector) { + } else if (connector) { bus_flags = connector->display_info.bus_flags; if (connector->display_info.num_bus_formats) bus_formats = connector->display_info.bus_formats[0]; @@ -1917,7 +1917,6 @@ int ltdc_load(struct drm_device *ddev) DRM_ERROR("Failed to register LTDC interrupt\n"); goto err; } - } crtc = devm_kzalloc(dev, sizeof(*crtc), GFP_KERNEL); -- 2.25.1