Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp165555imn; Wed, 27 Jul 2022 02:59:11 -0700 (PDT) X-Google-Smtp-Source: AGRyM1scePXiaLyZzukOEe5CtyIuF8fBgpeaq2Qta3NxnTUI47sfSk/mzk7wRSjmcPLcIWZX6u2/ X-Received: by 2002:a17:907:971a:b0:72b:6bab:abc2 with SMTP id jg26-20020a170907971a00b0072b6bababc2mr17069972ejc.551.1658915951094; Wed, 27 Jul 2022 02:59:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1658915951; cv=pass; d=google.com; s=arc-20160816; b=AyCdKztBy6/vsR6s5O8IoPoFZ86IiLqN1BImNjVgGWH8KJti7VPoExUZ85yfc4wsVq AjQKd7fEUoOQdxP73lH6HtQga+xYv9kBNtQ5U9b/Ji5sn6Y3JB3lVSTzwTvaRfVlZYDC zvqYtt/PLm+d0iYlTBzHrN5tSQVPx2EHXijtgAuTASxGfj3Y1iloUZu4DAVgs5eNoh2F URoBcM23/rItrmxWtkKC72jlSOD4k/zSQSUWwnGYBEzk3cwlfl5QHmYp+3xA4Kvt56kP JeIapfeMR4rc1/ERaT2bHBIeE8ZOgKOC/9zK89MXpQaJ5tav/Z+0ACvsfIGV0pBkbQ2N /0Pg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :dlp-version:dlp-reaction:dlp-product:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature; bh=J5iSmN6fSgFLWnm8Xatcizp5I/MEIXIQRwRq5fhsjg8=; b=PFC/mLQJ1aQ8nRVE2hgMm5rxYKyKxoXyTHuRz/UPkEomBr8rIPzyY6UUaAy11eJzPr kzzwOhU1drHmZ+9B+wAei6w4p06snnl0GPslqmtrTaNbsDQOxGMC7EamdiEL1GcwVhm/ uRXaq2hZuVmKA/5WEZedGjET7hlCfyi0pVPrGHxeinAAdKwRUGpoybOeJvVqSAjMMPE/ OCYoEbtUujxMnpZxOwIRt9wgGsnjtmvIjXSF9e6ZH/JovqdxXRBhYuXyhJBrxg+JZOqg SQb845f1n6ijHJUGhs8hWsbkeww55CJkZsfLnwJXi2j5Tct4yJ2BiFYxTgYUtkFX+S7C Y8Eg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Iw1ArU+t; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s23-20020a1709062ed700b0072b0deda68fsi16626890eji.354.2022.07.27.02.58.46; Wed, 27 Jul 2022 02:59:11 -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=@intel.com header.s=Intel header.b=Iw1ArU+t; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231518AbiG0Jl1 (ORCPT + 99 others); Wed, 27 Jul 2022 05:41:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53744 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231504AbiG0JlZ (ORCPT ); Wed, 27 Jul 2022 05:41:25 -0400 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 59C43402C1; Wed, 27 Jul 2022 02:41:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1658914884; x=1690450884; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=o2vgAj57qEmV+/mHCqyUM1gTDYf7PPsrTkxumVZ6d3Y=; b=Iw1ArU+taOoNiqs2K0S68uqZYYuHvV40X4Gur6hNs8DvtQ660IGXeYL1 luyfzH3xTJWH23wqF6MwJPNPjSjMYVrKw90Ask6CsUbdI2Fth2vvap6nz BuGBChz3O2Nf2zWD/yPG3YT5+siwtwFzx7r0UB0/OEsC/foqjY4qVOwCr 1fTzakxUqUO7FjaDgCxRY1zpC3KLIUAQyjY9/GcpcC6P3g1hsegWXj9w9 Vd83TLXQ8MM34INZvIKkw11pOThEclapqCtQ6gXwzKfihVhbY0E6HouBY XcAnWGUzu918iVEyyzpe+A5jVccTGjUh3tu//ZHycluJ5C+qJC4etjOws A==; X-IronPort-AV: E=McAfee;i="6400,9594,10420"; a="285738399" X-IronPort-AV: E=Sophos;i="5.93,195,1654585200"; d="scan'208";a="285738399" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Jul 2022 02:41:23 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,195,1654585200"; d="scan'208";a="628310280" Received: from fmsmsx603.amr.corp.intel.com ([10.18.126.83]) by orsmga008.jf.intel.com with ESMTP; 27 Jul 2022 02:41:14 -0700 Received: from fmsmsx612.amr.corp.intel.com (10.18.126.92) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.28; Wed, 27 Jul 2022 02:41:13 -0700 Received: from fmsmsx603.amr.corp.intel.com (10.18.126.83) by fmsmsx612.amr.corp.intel.com (10.18.126.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.28; Wed, 27 Jul 2022 02:41:13 -0700 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.28 via Frontend Transport; Wed, 27 Jul 2022 02:41:13 -0700 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (104.47.58.109) by edgegateway.intel.com (192.55.55.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2375.28; Wed, 27 Jul 2022 02:41:12 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PGegzkT5/FugkiIAfcSqz663agpyu2luTE05UmvT758DDDG01/R6YP0IoorRR/l8TS3GSokaP8ScEB3ObZcr50nHxoq3nAe646hFcg3osr6ZRu17X2mKzkjuSe1LnGqd4p43pDjzQSr6ZF3lWVojR7JpRkM8EmGGnMz0jAzhOV5r28Cwc0lqTuWPEFCzFfe2Va+VhrNI3QaPNPk04j/Sh2uNew4T9SMo05lWu6/jcKFJcityMKGelVIbSHHzaAGoXNF1ZoDgv56fl+U4xwPmpOtFguBo1oYK0kPuEBxN41JCzO6ZWdJNJ6TIx5sEULTW0Ir/tMhEa846AcqyLSuv7Q== 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=J5iSmN6fSgFLWnm8Xatcizp5I/MEIXIQRwRq5fhsjg8=; b=WoAZfp+c9kHoOjWvSe/PuTaueE4WnrF5MojoMEg6kcs0unUqNxVX/FnlLPi6wOb2mxlgA1bkVz4HagU54M5/1ijw7oSBI8CW0fWpCwbPzpwnI5mc88ioey3Udubcu7KH1vIa/4wOvagOXzZht0y7niFdhujpB35qEO+onjZhAwra3hR2mxjlo1EjVykk8ptngT0FO8Ksq63gRNH2tFvHXX40rNWgUwWjsMoOPfZokNYHKhNFD2/+Hkj7FcyrTHr7WTaYaVEWVHAbtnfrh4PkAQlckuPGEoegY2qMwEV49ECSEfMWqdDQFIfmZuiFBTKS53Vk9Hjyjs6hzj6KUBnhag== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from DM8PR11MB5653.namprd11.prod.outlook.com (2603:10b6:8:25::8) by SN6PR11MB2815.namprd11.prod.outlook.com (2603:10b6:805:62::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5458.23; Wed, 27 Jul 2022 09:41:05 +0000 Received: from DM8PR11MB5653.namprd11.prod.outlook.com ([fe80::9983:65c7:ae4c:d521]) by DM8PR11MB5653.namprd11.prod.outlook.com ([fe80::9983:65c7:ae4c:d521%7]) with mapi id 15.20.5482.006; Wed, 27 Jul 2022 09:41:05 +0000 From: "Cao, Bingbu" To: Andy Shevchenko , "linux-media@vger.kernel.org" , "linux-kernel@vger.kernel.org" CC: "Qiu, Tian Shu" , "Tu, ShawnX" , Mauro Carvalho Chehab Subject: RE: [PATCH v1 4/8] media: ov2740: Remove duplicate check for NULL fwnode Thread-Topic: [PATCH v1 4/8] media: ov2740: Remove duplicate check for NULL fwnode Thread-Index: AQHYoOgT3BbsvDQ0lEurL8cW5qr1wa2R9Ryw Date: Wed, 27 Jul 2022 09:41:05 +0000 Message-ID: References: <20220726120556.2881-1-andriy.shevchenko@linux.intel.com> <20220726120556.2881-4-andriy.shevchenko@linux.intel.com> In-Reply-To: <20220726120556.2881-4-andriy.shevchenko@linux.intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-reaction: no-action dlp-version: 11.6.500.17 authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 68306f78-758a-4ff3-29ca-08da6fb42061 x-ms-traffictypediagnostic: SN6PR11MB2815:EE_ x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: NOpt902H7XwW8ifpPD9mdy2jRR+zdgdXdFp9rQmFDYf3bw0OukrdI9QRuxVbMLpcNhbM7cbIS4P9O06AQKfxDg7IcPs+ocOHO5X7hk64IvtADX4go/08wjpGqhC3fXtdwL2fEsRXq0a5AmxjzASuSOuJ09La6zjVhjqScQ4kvCCZysK9DTa6RpJR1luJ0ctiJ3VFUpA3EG3El70BSqvzesYwIGMuQcqnNStuYwEPPtBjxLpwwgM6tRAzCA7llPlhJjIjtCIsHeEta2Xy4yXQYAtWpt9aQdAUHH62KOGeD8rIciyzqLIvZTJprUxDqazXp8fSJPrxZLSnHU5daLEFyLQS4QkLcuet6tKf2SiNSGR9aKW6dcY/c0hdnu3RKhRmR5bjEHfohPP4n8EAaWpa/qnj0Mk2mQol5J555QFlwOB5nB7nlcJGwblifvnmdFmI649OoM3ihVAk3n64Wf4Luv4ezmW9imLdEJD6anxxKXkqyeHvX+MWY1+9rXxrZC3ZwShpOaZRlxfwYEBAJgY3w2vao4rvN/iXs6qW9w6myVqUrfWlxlSjRcxsUMPM0hIHnWc5mxg424aTmYObke99J6DvNGHmeIuaiRCqHiwo0BFyeid/ULsg38s2z6SG8ipjyuR5DW/fFEfxdDpYyIilwNyCvAccmiSe7dlzOpem2oKenSyMfYz6fDe5pP1EuQryCcMRX1QR61B00bTEPjOLuu+IPWAMpJ2gdFc4oFXKnnYRA3cWi1lPjKOzjQdbKE+VuT/yH83UJEc17+0M0bJK6ZhU5qLMwkYZfG0pFxUZUEsL0OHm+Iz1R/K9xWeFzg3g x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM8PR11MB5653.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230016)(136003)(396003)(346002)(376002)(39860400002)(366004)(8676002)(4326008)(76116006)(64756008)(66946007)(66556008)(66446008)(82960400001)(52536014)(55016003)(5660300002)(122000001)(38070700005)(66476007)(8936002)(2906002)(38100700002)(478600001)(316002)(41300700001)(71200400001)(186003)(7696005)(33656002)(86362001)(6506007)(110136005)(54906003)(83380400001)(9686003)(53546011)(26005);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?P/Jjm1URVSqs2a8XzQ9SCC2WYABQ6aKXZJ52sXwoAtD/Vm7HSHO21SW0GRtx?= =?us-ascii?Q?KiLO98yd/Z4rL9vMNDlMVD00p7iCH4Sb+AC/xXTts+gvVnL6no0hxOsPo/kL?= =?us-ascii?Q?Q/LfzGt1nVU2ngxp2fTyNgmpWs9qEvEgaPRVbK6hAFrDjd4x2QtfP937dIry?= =?us-ascii?Q?s/r4HNatOlMlG0g69AI9FBoXInx9ZiIQZ9r/jOTRLAT//5q8KsdZvm8poGp9?= =?us-ascii?Q?VJVBYgGQfAz1Qqx8KUUpigsQCjCJ3ggC1rb+vnfFvA8M9VJ+R4M/crO+iHOb?= =?us-ascii?Q?uHRbpa2JqLav7adv0w6icR72ojuBzqZWNrHYLEe7PqzpsUc/p/SC1e1VUycN?= =?us-ascii?Q?IjPokfJGHZ2zinEmMObgOvTp1b0zL7WwtXYPyOEUiDUZ6C+3YNCFRRbDOt0h?= =?us-ascii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CDpLLlau6hmeVAoH3YWFNHR15zyKL?= =?us-ascii?Q?RiWpk4DsSNJv2yaKGk489RYGgDoGvzyHLzca74Znb3I/INUeNucJzmTxkyKI?= =?us-ascii?Q?l3TRjPc1JUAtrN4ODyLrSlGJpO5lHmeTonGv6UczA2SwYc6Sq5ZD0oGt5neN?= =?us-ascii?Q?BDUaNgtZlTL8ZfjbsP12Q0YMCFfX/Y7aCx28dFACULFYgotd+jdZArpFkO7P?= =?us-ascii?Q?gI3Wstp7yS+YdWFSFeBBxvHXVVvOkXWEeByasFxEkrbV173vtt89404SBHSz?= =?us-ascii?Q?8Yfg9vFM4Zx80fC1SisuU7oPuE5eUNGzMmO9dmCy?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM8PR11MB5653.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 68306f78-758a-4ff3-29ca-08da6fb42061 X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Jul 2022 09:41:05.3756 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: NPlHbhDriZib8wX/l+aeq5vK6XCPqnfz2LyFviHbWk1IGq6xizXd/QLxdybmn+ImkK0cniG967v/9OESlyny7g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR11MB2815 X-OriginatorOrg: intel.com X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_NONE 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 Hi, Andy Thanks for your patch. Reviewed-by: Bingbu Cao ________________________ BRs, =20 Bingbu Cao=20 > -----Original Message----- > From: Andy Shevchenko > Sent: Tuesday, July 26, 2022 8:06 PM > To: Andy Shevchenko ; linux- > media@vger.kernel.org; linux-kernel@vger.kernel.org > Cc: Qiu, Tian Shu ; Tu, ShawnX > ; Cao, Bingbu ; Mauro Carvalho > Chehab > Subject: [PATCH v1 4/8] media: ov2740: Remove duplicate check for NULL > fwnode >=20 > fwnode API does proper checks and returns correct codes, no need to repea= t > it in the caller. >=20 > Signed-off-by: Andy Shevchenko > --- > drivers/media/i2c/ov2740.c | 3 --- > 1 file changed, 3 deletions(-) >=20 > diff --git a/drivers/media/i2c/ov2740.c b/drivers/media/i2c/ov2740.c inde= x > 9420258c6073..07fe8fda274e 100644 > --- a/drivers/media/i2c/ov2740.c > +++ b/drivers/media/i2c/ov2740.c > @@ -1009,9 +1009,6 @@ static int ov2740_check_hwcfg(struct device *dev) > int ret; > unsigned int i, j; >=20 > - if (!fwnode) > - return -ENXIO; > - > ret =3D fwnode_property_read_u32(fwnode, "clock-frequency", &mclk); > if (ret) > return ret; > -- > 2.35.1