Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp506586pxb; Thu, 5 Nov 2020 06:05:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJxkV0rc4ElKp1l259WloxPX2nWqeXJZF0robf+13oVS6rZ9+24dwdg0h1w1dhQ0Pc9L/tln X-Received: by 2002:a50:dec5:: with SMTP id d5mr2751006edl.362.1604585104394; Thu, 05 Nov 2020 06:05:04 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1604585104; cv=pass; d=google.com; s=arc-20160816; b=Mtv5avxL1p9+huLVS2NRVswGMsYmJKDGhXws1Z+CmpJfa313V1myxfXZaDqMuJnUlx mXdaQHC8T/0peiscH+XAJp97qW3aW6mesY+taVUvw9bsmrVBHbSBjqlwY0I19kgpR1xY n1Ev3SPiGbQAhqWKJHnEf7l+UEx29hNCPR48LlYCynXYbRIUMmlb1pr0LNDmLqePSPJg +uqAuTPZOTokF50MU11kstSL7hVvSCD2NRVbOJ0jMZMI1HE4huArPbrFd+Wy530PnA+2 cDJz9bbjjykCy3r2YH9e3thRWWfmkJnrkOdLc3evn+BA+bhkW+X9b6HqwQ0D9yMeMDvw CswQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=mAmyNI4QT7uJstUZxrDUoJ7xltyM+XdeFVzSm0CHJSU=; b=ydqB8MDozuc+FxaT7ZeDqhxHeFrmYYJia82tvii+jP1ub8pOcDvRJoiwtvj9UEEXrX sjFq9EAa22dMpulOHI/ak8EB0ZKyyPOm05aI1p6bauawg6j+45cudGKPE/EkRcg79L8q USHok0A96cponNfbKxm8jpwUYxPcgNdCuZVaKi3XvckMVbu+Fuh9IkZ1K2cqCXiUViFZ wzg38EwBBiRMvtjQmCRnTM3HhPSwQ8C62VlmTi/UfNY1eREGsLH7SqcW4zkRzH29wbAJ CRI8MHcLxtXEo0wwGs6cBSaEcT9njxpu+Ql1C573gyCBsLn+r62M8ayOEXNWloV+eYnC xByg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b="MH/mMdIH"; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x72si1096283ede.132.2020.11.05.06.04.38; Thu, 05 Nov 2020 06:05:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b="MH/mMdIH"; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730993AbgKEOCW (ORCPT + 99 others); Thu, 5 Nov 2020 09:02:22 -0500 Received: from mail-eopbgr60050.outbound.protection.outlook.com ([40.107.6.50]:12103 "EHLO EUR04-DB3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730871AbgKEOCV (ORCPT ); Thu, 5 Nov 2020 09:02:21 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=oFIg0GUWLaLygJEKNo0QBDRZ7NiESa2AZOIfAB9f8IWl/vEFkyXk/oMlkrYAOP62sOMjH7E7OQ5b3WrMaRg7hsGrYVE9Pncsga17n2AhYw8mmiONqsGEJp9KN9kW09Vg8/YEIhwpiKLC21iwwh+tWDlt1AQN7XfnrvKPDFBn2BSAtSKdi3/L0lPzvzi2qfTNY1HmfwmPPMaO3wPY6GdCNo4taXiMKDre+fCKp6CCKHfVbdQBP5du3cDWR8DiFy4JcYbgubMIfzxZ5fNYu50HNQ4kPzXLlZEHac0i0HRIU486oXJ1iaogNK+JH29pImRZOvGt7cxALaXKEnyQBS/2lA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=mAmyNI4QT7uJstUZxrDUoJ7xltyM+XdeFVzSm0CHJSU=; b=f3az9R+UhK0dH4rMj+fkVofqG6avjIi3BaTS5PRboi9Z/Gcozhg+Qfc+GJZScCOaBYioYjNJpnbjGvEcThGi8btRyFAEdemrS1DyDZG1++67vWM0inP5v7zG8Tm2/ZR8Gq2tt6xrfn2t9tM8673tKfeD9grjvyxsa5GtQNm4zzYFMHg0SjGoTJ7u1cRNMNCVoge16Xd5AEz0Jy/eJhWL+gCaKyPw4zRjOg89NPXPrgp4oi0DKkp9xYMdVRXrGofzBCXvhUW3BMiBOjyUfCK8Ms8GjP2s5e8ygwZBMWD16ETpdr5fKUNaWq0igWA/0RDwiawGGV2qdNsqe4tnRxMCbw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=mAmyNI4QT7uJstUZxrDUoJ7xltyM+XdeFVzSm0CHJSU=; b=MH/mMdIHkXCND3GrMjjaav/oiJdPGdoO3BrLoX0K1ll46VomNV96Wrn2K7d2y/O8+C79AL+Bg6OI9XsOr1rQdlsLFxzPdTYSeWIRl0mHlyFzgnlpFZdqgf+z4rmtvRTgDXe3nKxhxigHqMkxB4WWlV6IJrd3YeVeiSTJ5oSPbic= Authentication-Results: pengutronix.de; dkim=none (message not signed) header.d=none;pengutronix.de; dmarc=none action=none header.from=oss.nxp.com; Received: from VI1PR0402MB3902.eurprd04.prod.outlook.com (2603:10a6:803:22::27) by VI1PR04MB6783.eurprd04.prod.outlook.com (2603:10a6:803:130::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3541.21; Thu, 5 Nov 2020 14:02:17 +0000 Received: from VI1PR0402MB3902.eurprd04.prod.outlook.com ([fe80::f000:d709:509:bb5]) by VI1PR0402MB3902.eurprd04.prod.outlook.com ([fe80::f000:d709:509:bb5%3]) with mapi id 15.20.3499.032; Thu, 5 Nov 2020 14:02:17 +0000 From: Laurentiu Palcu To: Lucas Stach , Philipp Zabel , David Airlie , Daniel Vetter , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , =?UTF-8?q?Guido=20G=C3=BCnther?= Cc: Laurentiu Palcu , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] drm/imx/dcss: fix coccinelle warning Date: Thu, 5 Nov 2020 16:01:26 +0200 Message-Id: <20201105140127.25249-3-laurentiu.palcu@oss.nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201105140127.25249-1-laurentiu.palcu@oss.nxp.com> References: <20201105140127.25249-1-laurentiu.palcu@oss.nxp.com> Content-Type: text/plain; charset="us-ascii" X-Originating-IP: [83.217.231.2] X-ClientProxiedBy: AM3PR07CA0084.eurprd07.prod.outlook.com (2603:10a6:207:6::18) To VI1PR0402MB3902.eurprd04.prod.outlook.com (2603:10a6:803:22::27) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from fsr-ub1864-141.ea.freescale.net (83.217.231.2) by AM3PR07CA0084.eurprd07.prod.outlook.com (2603:10a6:207:6::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3541.15 via Frontend Transport; Thu, 5 Nov 2020 14:02:16 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: f8617b05-f2ea-4bdf-560b-08d8819367c2 X-MS-TrafficTypeDiagnostic: VI1PR04MB6783: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1091; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: FXwSLeSCHiwf/PmRSvj78Z9oF4d6IcOnvviwED0F7jR5jf0gjXA6QB8giUA+NjNXyfVPlQOGX7PfOw8TiqfJoIkqrfM4Zfnocp7QN8NO2HQgOLXzKnLZQ/Ufbsya3y5M2c6vJMvIEjhvT+aWIwcboL/fIuGRCIeOB0FQNt9XrZfal6/r4uwYTpaNDwpWBc1fbPlV/iR6rgnSls5pJnQeNZjNu8sCJtz0e7i0Rpo7cc9RW0Brfbin6SZDLuSy7VaazDu19Isi8To6sEFw82yG2bvP3L1iZNTgMd/BoKHf6ckYD8JcGXgMgjgQmQiNOgu4bgz0Bd7bLi2VEdFZSdg6zFJaDF+yaEh7D5bXSsPMVAQ= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VI1PR0402MB3902.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(366004)(396003)(39860400002)(376002)(136003)(346002)(8676002)(2616005)(956004)(6512007)(44832011)(83380400001)(6666004)(8936002)(66946007)(2906002)(6486002)(66476007)(66556008)(7416002)(316002)(4326008)(52116002)(86362001)(478600001)(5660300002)(1076003)(6506007)(186003)(26005)(16526019)(110136005)(921003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: xO8s8Sa3T9/kfwUGM2KBTzJu1q9ZWeQV5LIWCHlkg3gZ3JeaDyl495uqd6jqJW6+MRNEbhmLqHc+g8njeQoZtnQvlS/mv3PEUDQfS6a4OupLRVJJSFZF6FeVWvQtsqDFjLEJBJ0sZ+8u/hLQ4WvwzcSWaqTJRVeNDLkkFy+cpWdGuPvDS23XjPfdcto6SSf07UDnpDxG7t2hIaG1gV71n8iUaKPvumy+aRzMoM81rGHLt/vhbiVj2dIzOS/YTaXY4d335Ik7N/H++tckAFjMYDnXtbXJSrmvp3I7zd5Xif5URbCkXfD0CZZmz/ZLOZisYRtVW4MjoF5cgIghlZQ6CIzJnMw7crmK7yIzXBaxkeVRVkPUvCAJLqY0mlNkPZU2gLZxO8XgxeWkl7xtWXQcWWdB6BxaqgY1luX4i6amb6410GyxKh/gcBKmsdGA+vJBy3yLqYgBvjyuK8JYEM1fmPbVQI+eh+XauIKs5E/i7bLBQu8+rB+1Ewy63cFQyGHYK/K0cVu4sfNtf6i78Ye94PgdRT4l/VJvisCXrwuxy6iCbatfWxIrdv35w59vEKZH7FhDLZH3h/nRjA/VZsLkN6HVCT8YAPdlq8z20Nu2jpDyWIMEgPxDXy1RN+WDrJgbBEZGKLfByzhPQ+QqGKb+8g== X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: f8617b05-f2ea-4bdf-560b-08d8819367c2 X-MS-Exchange-CrossTenant-AuthSource: VI1PR0402MB3902.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Nov 2020 14:02:17.8601 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: bfGH1yZ0Zrp65aHDWCaubYSUhxTJoAKkfbQyV1l5hFq7MIbG0J22TggDt+E/v003ihULR66qpTa114quac80cA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB6783 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This small patch fixes a warning that I got while running coccinelle: CHECK drivers/gpu/drm/imx/dcss/dcss-plane.c drivers/gpu/drm/imx/dcss/dcss-plane.c:107:21-23: WARNING !A || A && B is equivalent to !A || B Fixes: 9021c317b770 ("drm/imx: Add initial support for DCSS on iMX8MQ") Signed-off-by: Laurentiu Palcu --- drivers/gpu/drm/imx/dcss/dcss-plane.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/imx/dcss/dcss-plane.c b/drivers/gpu/drm/imx/dcss/dcss-plane.c index 46a188dd02ad..5db093aada2f 100644 --- a/drivers/gpu/drm/imx/dcss/dcss-plane.c +++ b/drivers/gpu/drm/imx/dcss/dcss-plane.c @@ -103,8 +103,7 @@ static bool dcss_plane_can_rotate(const struct drm_format_info *format, bool mod_present, u64 modifier, unsigned int rotation) { - bool linear_format = !mod_present || - (mod_present && modifier == DRM_FORMAT_MOD_LINEAR); + bool linear_format = !mod_present || modifier == DRM_FORMAT_MOD_LINEAR; u32 supported_rotation = DRM_MODE_ROTATE_0; if (!format->is_yuv && linear_format) -- 2.23.0