Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp951598pxu; Sun, 25 Oct 2020 23:21:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzX1+RD6l2CeUS1wJlyGe43DRJ1rqzGdckdL/XkDDLoi5qS/66pKIJMxdBvGilS3AKZqHwd X-Received: by 2002:a17:907:2714:: with SMTP id w20mr15008845ejk.515.1603693297348; Sun, 25 Oct 2020 23:21:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603693297; cv=none; d=google.com; s=arc-20160816; b=nGv+iMn0S35PfCxQEzy73DA9v/Wzbu15IGh0AcuH9TFKI0mGPqD1+DrBxvv5lvvNrg xTIELkoECoW9kcYEQinQX7vdWndQncx/IMwVZtLLedprS7ORP0Adk50wgr7jB7sldYNU swUt3I4xmwbAUG3YCBI1FkXO6I8b0SOaK+d+E99P0jyprXlwS6eCvdTHve8osI7j0ykV jPiWqb0F/MJjbnOYydLcHqZ8BaDAJ0W9sFlH3TlCwtEGgcFy+YgpUAlQdJM6u6kIFqNk WBM3D76h1Y13akmxDEFHYktCOTPAC/IDWANFupQ21EAWFzzliz+c1ejS6vX6yvUFekfq ZGPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=vVvfkbUAMLnEGPVp22orf6GiMNv3USdQoc6xNCO1YfM=; b=gdMrHchdmb1A8ivvGuHJZlR39eckmnmHWtmhqe1zp2EGzpBw3Lu+6dvOHKfiDVxUzz GQOVUH4ELH2cILSGyA6Td+ZwpDd0C8vZeIEEaoCXsFpF5FL9oGB4CHuBi5POohtlM7lm DjQ2VUEt7XL0ptjJ9AONhZLbKxykORrNiZtP0S9PpAWuoITA+0P29DxUcO/KFMaPmslr urGz/I1v0MDxQ50AfVfVWTmpwg6plj9766bpr1AC+zhCHOVeEvbP0TgKHJDQkyig4lQh A81P929EFqmqbNB/KBMDPaTT46+tnQN27pnsD/BHedswOvTUodkbnKznbkZqlT8X4d6j LK4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=HC7eHEWq; 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 y17si6739156ejr.469.2020.10.25.23.20.55; Sun, 25 Oct 2020 23:21:37 -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=HC7eHEWq; 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 S1421150AbgJZBbi (ORCPT + 99 others); Sun, 25 Oct 2020 21:31:38 -0400 Received: from mailgw02.mediatek.com ([1.203.163.81]:45896 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1421144AbgJZBbi (ORCPT ); Sun, 25 Oct 2020 21:31:38 -0400 X-UUID: d813a77c2ec0400499b3d8f1a6b5064f-20201026 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=vVvfkbUAMLnEGPVp22orf6GiMNv3USdQoc6xNCO1YfM=; b=HC7eHEWqrJsZ2BjdniBzyPPGb/8uJ0nKKMfyeF3N/czBIvUUbF1Q3QBT8Htn0m4jpYIo5SZWx/vxIlAzfRUHqmIGcIetQhp1365VUGo+7HfsD18qI2uhSZ233af+zxNO9fb0Xhdaqo82JnCBGmaRjJFvxsJFtnfjM4waUrVQNr0=; X-UUID: d813a77c2ec0400499b3d8f1a6b5064f-20201026 Received: from mtkcas35.mediatek.inc [(172.27.4.253)] by mailgw02.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 785108375; Mon, 26 Oct 2020 09:31:33 +0800 Received: from MTKCAS36.mediatek.inc (172.27.4.186) by MTKMBS31N2.mediatek.inc (172.27.4.87) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 26 Oct 2020 09:31:26 +0800 Received: from [10.17.3.153] (10.17.3.153) by MTKCAS36.mediatek.inc (172.27.4.170) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Mon, 26 Oct 2020 09:31:26 +0800 Message-ID: <1603675886.25719.15.camel@mhfsdcap03> Subject: Re: [PATCH] i2c: mediatek: remove redundant null check From: Qii Wang To: Xu Wang CC: , , , Date: Mon, 26 Oct 2020 09:31:26 +0800 In-Reply-To: <20200930084233.53085-1-vulab@iscas.ac.cn> References: <20200930084233.53085-1-vulab@iscas.ac.cn> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 MIME-Version: 1.0 X-TM-SNTS-SMTP: C5F9B31DFEC0D8FA081D2D8373472B423FFF94D55D1C916320D7C9D4142E35FF2000:8 X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org VGhhbmtzLCBpdCBsb29rcyBnb29kIGZvciBtZSwgaXQgd291bGQgYmUgYmV0dGVyIHRvIHJlbW92 ZSBhbGwgdXNlbGVzcw0KbWVtYmVycw0KDQpPbiBXZWQsIDIwMjAtMDktMzAgYXQgMDg6NDIgKzAw MDAsIFh1IFdhbmcgd3JvdGU6DQo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