Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp285784ybb; Fri, 3 Apr 2020 02:41:39 -0700 (PDT) X-Google-Smtp-Source: APiQypJjp/rDPeOfKMOzHhSTuw7aW0Lczj7SSpH07+CHMFexxvVu6P+hvHfAxxuKQdiavFSiOchI X-Received: by 2002:aca:d50f:: with SMTP id m15mr2465575oig.19.1585906899057; Fri, 03 Apr 2020 02:41:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585906899; cv=none; d=google.com; s=arc-20160816; b=L0vktoisGGNaSab63iZVl7LG2Ai/BjqQAwZqQgfGLOp3n/tD9vABnBQs+W88se196v F7Oh21p5Zuy2ayH1w8POXzYi/JvyGLGcF4hBUbnAO8LXe+MQD89if/YGIdFjYEBzg+Kd gdqmTfnUTo1WSZe/qKy0pQWjHzOY+4LBc2OIxaeDKqqACR1UJdB2PNl3ONLHsxXUEEMP Zn5DiDaaKk/GJMUwV40AZxJW6t2AkFx5jYshCOJ/Mt1JMfe1p8dwK857+ZB6nJLKzmYv 4vAnOvcXmnOvuNs1kVv27Zn9Yvujs+q6tvzZkDd07NO3L4qVszgr9YV+M3vF6kLNb5hJ dVYg== 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:message-id:date:subject:cc:to:from :dkim-signature; bh=Lprj+ufCYbzLwTfc1XoNnGUMFca4BTukbE1k5gVfSdE=; b=LeWPeHxS2cpcUxseqUeaWzQA64rFX5eQmtSLYizXLkyREjV5czozC9z/urdhLaxzTF ftgyYm8Qh7O9S83GtY+PS7Hnh+6SnZBOlTe9u+x78z6Sox7+U2XEYS6EoQTvlGb/xmyo iCIVfq0RptXx7TrBlrGsU59WrZ+uJOEtJwsnmi4EXsDx71BZ0hDf1GiKBje/Zm37esSG gAjV7UPSfQGm62tCqr2VKwVfNyVYQ/nT4oUkPUZU0leRquF6QiGXjfYICoV6JnVhgi3c PEZ3LpPwz8IDOZ+rmbxv4g4Nl1WdN3oeEKpRNQ3YH+SGZEl0QB0w4k7mIdldYCEd/A4U NAWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b="MIvGBSw/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id w65si3779391ooa.42.2020.04.03.02.41.24; Fri, 03 Apr 2020 02:41:39 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b="MIvGBSw/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S2403819AbgDCJk5 (ORCPT + 99 others); Fri, 3 Apr 2020 05:40:57 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:19623 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S2403783AbgDCJkx (ORCPT ); Fri, 3 Apr 2020 05:40:53 -0400 X-UUID: 851245fb58ec43c4b7c4fa9c7e4da0c7-20200403 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=Lprj+ufCYbzLwTfc1XoNnGUMFca4BTukbE1k5gVfSdE=; b=MIvGBSw/zhjYjs0qUOTihWrnVV5bXZMhWThnQLXnXpRyTjDrFvEUCC0HmC/kmm1Ak3PtuK1wJ319ypH8StWqr1BU7fTkcjQi22FGB/u1oVImy6ijPaRee0e0FdJ81E2crmNen0qPKhiAj7J6Gwwz9Td1Ts5J6xgyiILYiayG43g=; X-UUID: 851245fb58ec43c4b7c4fa9c7e4da0c7-20200403 Received: from mtkcas08.mediatek.inc [(172.21.101.126)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 407350468; Fri, 03 Apr 2020 17:40:47 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs05n2.mediatek.inc (172.21.101.140) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 3 Apr 2020 17:40:43 +0800 Received: from localhost.localdomain (10.17.3.153) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Fri, 3 Apr 2020 17:40:43 +0800 From: Xia Jiang To: Hans Verkuil , Mauro Carvalho Chehab , Rob Herring , Matthias Brugger , Rick Chang CC: , , , , , Marek Szyprowski , Tomasz Figa , , , , , , , Xia Jiang Subject: [PATCH v8 10/14] media: platform: Delete redundant code for improving code quality Date: Fri, 3 Apr 2020 17:40:29 +0800 Message-ID: <20200403094033.8288-11-xia.jiang@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20200403094033.8288-1-xia.jiang@mediatek.com> References: <20200403094033.8288-1-xia.jiang@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain 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 RGVsZXRlIHVudXNlZCBtZW1iZXIgdmFyaWFibGVzIGFubm90YXRpb24uDQpEZWxldGUgdW51c2Vk IHZhcmlhYmxlIGRlZmluaXRpb24uDQpEZWxldGUgcmVkdW5kYW50IGxvZyBwcmludCw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