From patchwork Tue Jan 2 14:06:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhavin Sharma X-Patchwork-Id: 184362 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:6f82:b0:100:9c79:88ff with SMTP id tb2csp4464647dyb; Tue, 2 Jan 2024 06:07:59 -0800 (PST) X-Google-Smtp-Source: AGHT+IF3rBODromOgkrY5vv51kZkS5gUBbPTjz1NiLrtYMU3CseMawMbupDecwO3Yn8DVI8dp9Do X-Received: by 2002:a05:6358:7e06:b0:174:f48d:b02e with SMTP id o6-20020a0563587e0600b00174f48db02emr8590630rwm.14.1704204479383; Tue, 02 Jan 2024 06:07:59 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1704204479; cv=pass; d=google.com; s=arc-20160816; b=AYWjywkT/XCNx+bqFcp0c9L52JMuJK1ZDZUbZmt/SmUpOEg6G//hk0Dd+Mx+HGd8YF QYF+yIKLoHRVZSzgqowBJlxG2BtU29MNy420sVbtzNRddYi+2jLPGyNZf95MP87jYt4F p+a58OJ3zq7Nufjj+0xldQ3qdtSFoAIkoeRkQ1eLZEcv1bHEUnOvE2cR7HjFW6y6L6W3 q8Wypz8Hh/m0vosc9P0kGhySX9hDOw7u2nGBPPpe1CfxgRcZG7mbDrKSJ/HZd1dgN/bY M9sBWMF1kHKL6Brk4VPLKvjsc6lBy/qySaAgIFtc5SHRzFRVJug4bzAwM5nBKJcabjI8 AY8Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :content-transfer-encoding:message-id:date:subject:cc:to:from; bh=aZCP+tZfOSiECWGY85D2VgoJ9IlWyNopswZ+YSbCsTI=; fh=0xnjhytnQ4H+sP5mYYFMOTv7HKYcWVrcUqZcRxoODik=; b=ZJhkL2SJsyAjIOckG6ZafKitcn9IqOhfbOXVZH1zZ9pop5/dndQxM93EnEi4ZxvHpl 07zKChYTJhigLMmEEMHfR6Js/RhxXWnnHdHkMwISDBlFfOp/a+JqerpzT+Z5JjCAHDUO qKFm4ERAI17PBu389zyQyYrZJkJNsadbX+RDatTWokpZOG1paPAa0+GQLHKUOJjTH1y8 NxcYCMT89jQLihSQQbuCh3JSnDPELZiMvXxApFS10VCWdp/KjnkyRWtFHmGfYzETgZjr T4JitONM2oQZEMeqx4Ke7wavLaFs2wMMUHnumbTPF+bPHIuhTvRkWMr+bYrxnV5SL7ha 8GUg== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=siliconsignals.io dkim=pass dkdomain=siliconsignals.io dmarc=pass fromdomain=siliconsignals.io); spf=pass (google.com: domain of linux-kernel+bounces-14466-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-14466-ouuuleilei=gmail.com@vger.kernel.org" Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id y19-20020a05622a165300b004257263a54dsi27312437qtj.777.2024.01.02.06.07.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jan 2024 06:07:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-14466-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=siliconsignals.io dkim=pass dkdomain=siliconsignals.io dmarc=pass fromdomain=siliconsignals.io); spf=pass (google.com: domain of linux-kernel+bounces-14466-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-14466-ouuuleilei=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 1CCBD1C2233D for ; Tue, 2 Jan 2024 14:07:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2808212E5A; Tue, 2 Jan 2024 14:07:26 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from IND01-MAX-obe.outbound.protection.outlook.com (mail-maxind01on2081.outbound.protection.outlook.com [40.107.222.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AA3D3101D5; Tue, 2 Jan 2024 14:07:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=siliconsignals.io Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=siliconsignals.io ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Q7/2VhM9QM5lmHhx0WnhgMESKoBtgQhV2K/R68NTuBprX7C/sPh2PsEKXTDb14Z+zDfbD4Fq1mgFeEI0epf0Hzg9DfvMJ67wd1sjqWOsHPkvv/xCZy8zxFdQf/MMgQ1gTyXwZV/1UR4yIfk08meMu3nYcqhFSthOlM6cij+I9dIhJnrjui6OYJKoo+sZmmx2H+Ep/t3es/WF4smhuYopfL9Tc0gMTDvIOcJ6UNdKE5GbrTG/6kpOezCc9ZLLNIDoomiQ6pRvPspQuV2A+S1zsCMESThyvVuhDZmgC8JL35i9TezWCRn4c9cg2ZL/d+m+5qiM1E7Fz/TZaiLMqd8qYQ== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=aZCP+tZfOSiECWGY85D2VgoJ9IlWyNopswZ+YSbCsTI=; b=NLHkoahMn8p+tz6c1HAStTkyYD3UWOZPSY+bGUMbCOLFblNrXUbrsXdJc37/aQZ8cGwxlFvvRtzq4PFluh5wRJ4zqjDh8Mb5BuboOERv/BSpMIVQCAKt5ToA1wSyPLtqRft+q5IlMprthgJnDAjMKvEMLCkhXRqcj2wob6gSVNiJ/U6HBZRX6YGtPjG/UsMGygxoyaakWKj6TVECaWbzC1G1Rr1z4VkJjFIPYF7xrY+uoeNPSCzaQ2rB/sN/PXQ8pG2ToSB2Em6Tw8CjbAqzJQIfCP0mvAybs3z0+GmI0dg5Vz+Wj6H6yYW7XXPL8OgoPG4nc33xwVKh+Rb71Sn1Sw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=siliconsignals.io; dmarc=pass action=none header.from=siliconsignals.io; dkim=pass header.d=siliconsignals.io; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=siliconsignals.io; Received: from MAZPR01MB6957.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a01:42::6) by MAXPR01MB4456.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a01:9::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7135.25; Tue, 2 Jan 2024 14:07:19 +0000 Received: from MAZPR01MB6957.INDPRD01.PROD.OUTLOOK.COM ([fe80::c1b:b2aa:7fc0:6532]) by MAZPR01MB6957.INDPRD01.PROD.OUTLOOK.COM ([fe80::c1b:b2aa:7fc0:6532%7]) with mapi id 15.20.7135.023; Tue, 2 Jan 2024 14:07:19 +0000 From: Bhavin Sharma To: mchehab@kernel.org, kieran.bingham@ideasonboard.com Cc: bhavin.sharma@siliconsignals.io, Lars-Peter Clausen , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] media: adv7180: Fix cppcheck errors Date: Tue, 2 Jan 2024 19:36:40 +0530 Message-Id: <20240102140641.1740275-1-bhavin.sharma@siliconsignals.io> X-Mailer: git-send-email 2.25.1 X-ClientProxiedBy: PN3PR01CA0161.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c01:c8::17) To MAZPR01MB6957.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a01:42::6) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MAZPR01MB6957:EE_|MAXPR01MB4456:EE_ X-MS-Office365-Filtering-Correlation-Id: 4c4258bd-f4d0-4bb0-2e4f-08dc0b9c21f5 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: NoizWol0sxJALPyvQKKv2xgk35v7/0y3oKW3F3X6bsgR5HzX08MKs+Y7B9TS0DWUWt4QOiftbf0m5L8aMslPOuji7Et2dg7rEf4r1IhOpPV7PXff5JlOvQUR0BQ2F1mrpyv3beFHRcPPEYL2xO64dvUnQESiwRDbpuvAo9pSWUzFXBxvbV6p15K0738rjQLuxh9Zpe8ItYzGDgrsMSUYRW9MPFx5mpavg5QF+ytktKyIqALFTpvCJ5WEIagiewU+hufpaQC0kd//43jHEv52UPd8v+5H3ztLfG9cbdP7/fVlX23FuA8AamRT8daUDfASdfE15HWLj3x78uU0sUlX6+EHwl9nRax3Lkp5zJypaeNGWJzPHqHsw57GFF7rT+2hc/CVeScRCoWMj7iOTiVqKmC+q2gAUD56DDlXYRmvFkc2xWHq4NSfu23gPpHR2mkOCEIli07sbO81O/t4VbyJNwnReDqI3Cz8OwoK5Yx1ifd03joXO1OtdarBfqtEjxK8R8eqvNvgutGjTpfeEEwCK9P+jOlBJyeR/Zq1fvQV3SvH9Zyq+Rj93vbq0jiffClXfN+6mRe8/3pxQ3M+YT5TFeJtcar8cLQGBz6Go/vimMbHYhbmZjIME3VdSTPDjdMO X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MAZPR01MB6957.INDPRD01.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230031)(136003)(39830400003)(396003)(346002)(376002)(366004)(230922051799003)(1800799012)(451199024)(64100799003)(186009)(83380400001)(2616005)(26005)(1076003)(4744005)(38100700002)(41300700001)(8936002)(8676002)(316002)(4326008)(5660300002)(2906002)(6666004)(44832011)(478600001)(6506007)(6512007)(52116002)(66556008)(66946007)(6486002)(66476007)(38350700005)(86362001)(36756003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 2p1wZYvMQQL+x3BUJWqt+DxxrGRNkoPxNjK78K42jXDCjLzdNftFsorft7aD/ipDAo8L3erN/uf5RNTaYsAdzhjn3hut6InGSsaczxMP9lAW2iZDKo33H4bY2aayB7Mbh9MU/yMaNVE9Irx2FSeHGzCTKZ6eDA9nuXHVZJ7kQkaY6afpZPcPs8O+iyZ+yh+8ufEVAJBQ4d3ZpXksQlvWIn2QkuNcxLNGvzv3C3ZlQokwBHzBRtRMjbAPduAiJKO/5pxPbg2X0WcBqbElxSY6l3UiYaL+pI7gKeAap7VvAAu9QDAOuWh9vXsbWWZM6IYTkirwaUn8b0dGMm4/y9momFUC+4QNb1adoiCdx+uzaCxvlEZ3BUWL81BnlIbGUGw7cigOLLgFBEhQUfuTcRlxInru5Ui2JKeK2Q+ZIzcxTpV1EcuPZk9+RxfdJU/aGVpahrWPtpeL+U/Mr0tE/9x3gy1mjpCovJ2BIQV0xsHDsDtKzooXhhnkGWz1uiZIz7MQrKE3SHOnx/Zei/IUnQFY2F7vDqrbmtIA98IEBlgqWWRYpsTrxxMSCZTGQb3BCoqf2Slos/sCjMNbRAjMu3gbjtS/5eVI9V85GOrZktQJ3D+4fq9/xpnaSK0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c21f5 X-MS-Exchange-CrossTenant-AuthSource: MAZPR01MB6957.INDPRD01.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Jan 2024 14:07:19.4398 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 7ec5089e-a433-4bd1-a638-82ee62e21d37 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Wg6/FQOQi6Q25QrFP78ng2mBv/COqdJkanodAaEtXoooA9eKI4AUOFGDPWGDbjsyc4XqX3jDSvldgMk50ub9GwgmLzIFiHEr8SZGK5FmOWQ= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MAXPR01MB4456 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1786987916283545095 X-GMAIL-MSGID: 1786987916283545095 ERROR: else should follow close brace '}' Signed-off-by: Bhavin Sharma --- drivers/media/i2c/adv7180.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/i2c/adv7180.c b/drivers/media/i2c/adv7180.c index 54134473186b..e3b59f7e2a2a 100644 --- a/drivers/media/i2c/adv7180.c +++ b/drivers/media/i2c/adv7180.c @@ -1046,11 +1046,11 @@ static int adv7182_init(struct adv7180_state *state) ADV7180_REG_EXTENDED_OUTPUT_CONTROL, 0x17); } - } - else + } else { adv7180_write(state, ADV7180_REG_EXTENDED_OUTPUT_CONTROL, 0x07); + } adv7180_write(state, ADV7180_REG_OUTPUT_CONTROL, 0x0c); adv7180_write(state, ADV7180_REG_CTRL_2, 0x40); }