Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1892879ybg; Thu, 4 Jun 2020 23:48:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy1pes9ViuiAxpbvVmAMaAuKQ7JDS4ikiTOi9dimsnazi246Zyu3BxeMyp8i/70SEAFr9Xy X-Received: by 2002:a17:906:4d42:: with SMTP id b2mr7187900ejv.34.1591339702153; Thu, 04 Jun 2020 23:48:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591339702; cv=none; d=google.com; s=arc-20160816; b=0YkQZzj1PJlmFv68lDu3OGphPOt8aXY+oTb5rYg1/GsASPBcBeMhUzhzHdqRd1EVsT lxmXRcmQXOSPM2RPSzi/SyIZo8Seo6wsBKhJxtcAimusyGLKOWa1gQDPvhbs4c9df2ue qkIKXV8BhB/kgeEjsWXgwBJ4/TfW7571a5ABfTeIwIB4R97OgPkmDM8K94VrXPKrw/vz 5hl7/dTax6hjA68YTuxqmKwh2B5QglhNEDFKk/GztFn3h+84PhvXCtBjcaej0bNBEpBq NIhRf7Kt3A+a0gFSD8Xp3Ls6CZKhAHIHMYud2LyPiuICk1GZOgBZu+52aZUBYKWWBtzw VMTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=2NIYixWsd8OlqvdqL7k42R4lVtIiWeWmPEs4+j5aw84=; b=PljaJsalLyaM32435qmX9CUOoR51CPMlEbmBpAj9eU6iWQNHZZVzdRowdwEFFGfLUz XkhddNn+bbnUqFLI5hL690DGAhswsn0tTSMSVnp+CYgOFl7d90tdK7aePHHAtxROvDEC Oyx9PuzBOYSxDgUak2PHwcmpnaO9lSkJ4jx7NuvGCqUrSEEE+nAy6KTvGX82qEdWyKXN 2zuBLytIwFj65YtXETxovJZsxM5u9ffgzwHKE2SaYY2sfZ/saWJa+LUDuRkM+gUsTcxh sjZq9t9lugTKFGg3e5RuUVxJFctY/Iz0PRRgS2nuNzrileSI/B8fApQdb3mRBFfh0DVB N4Ug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=scrmkA2Q; 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=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a2si3134653edr.468.2020.06.04.23.47.59; Thu, 04 Jun 2020 23:48:21 -0700 (PDT) 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=@mediatek.com header.s=dk header.b=scrmkA2Q; 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=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726182AbgFEGnv (ORCPT + 99 others); Fri, 5 Jun 2020 02:43:51 -0400 Received: from Mailgw01.mediatek.com ([1.203.163.78]:26910 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725280AbgFEGnv (ORCPT ); Fri, 5 Jun 2020 02:43:51 -0400 X-UUID: 998f3d8e1ac64702882897d42f807527-20200605 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:MIME-Version:Content-Type:References:In-Reply-To:Date:CC:To:From:Subject:Message-ID; bh=2NIYixWsd8OlqvdqL7k42R4lVtIiWeWmPEs4+j5aw84=; b=scrmkA2Q1gMCLG7mO0qBnWOnetWhjs8WDqtJEw6LFgvy1UozYo+AzuZ0LIxN1EewXI+KKMfWxGT7uq0rVt8zZHbH6Su+V+9hxNZycBMFjDmJmbHkJpCMWeMbvJXam9SRxdmOLi5DDQItZKtZvKodhH5n1kYuL9WPH11O+z6Q8KI=; X-UUID: 998f3d8e1ac64702882897d42f807527-20200605 Received: from mtkcas34.mediatek.inc [(172.27.4.253)] by mailgw01.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLS) with ESMTP id 971553996; Fri, 05 Jun 2020 14:43:38 +0800 Received: from MTKCAS32.mediatek.inc (172.27.4.184) by MTKMBS31DR.mediatek.inc (172.27.6.102) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 5 Jun 2020 14:43:37 +0800 Received: from [10.17.3.153] (10.17.3.153) by MTKCAS32.mediatek.inc (172.27.4.170) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Fri, 5 Jun 2020 14:43:35 +0800 Message-ID: <1591339293.32607.1.camel@mhfsdcap03> Subject: Re: [PATCH v8 10/14] media: platform: Delete redundant code for improving code quality From: Xia Jiang To: Tomasz Figa CC: Hans Verkuil , Mauro Carvalho Chehab , Rob Herring , "Matthias Brugger" , Rick Chang , , , , , , Marek Szyprowski , , , , , , Date: Fri, 5 Jun 2020 14:41:33 +0800 In-Reply-To: <20200521154958.GI209565@chromium.org> References: <20200403094033.8288-1-xia.jiang@mediatek.com> <20200403094033.8288-11-xia.jiang@mediatek.com> <20200521154958.GI209565@chromium.org> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 MIME-Version: 1.0 X-TM-SNTS-SMTP: F245DA40095EEB20DE8BBC128389585E3910708CD5A9103CE40F6172721A704B2000:8 X-MTK: N Content-Transfer-Encoding: base64 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gVGh1LCAyMDIwLTA1LTIxIGF0IDE1OjQ5ICswMDAwLCBUb21hc3ogRmlnYSB3cm90ZToNCj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