Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2953444pxk; Mon, 21 Sep 2020 01:05:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzWdxGmCaDdtagoh7f5nbcAUqWY5090xq+ZJ3csvHJPSi5l5IqQYTirwHKkEw6kfQEGZqo6 X-Received: by 2002:a17:906:1a4b:: with SMTP id j11mr47376655ejf.97.1600675545593; Mon, 21 Sep 2020 01:05:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600675545; cv=none; d=google.com; s=arc-20160816; b=FW0JNt8MWAwN4wH/QmZPomiSUPVXmy8QYH32fE1I9E/Qq4pQ94m/dnU+5xlXazRVbT Y+5/pg9J5jaOcpUUPNNDkk5nNt1EVgrPRDKNBVWyfFUWLbCPNRLpMFmocJ1OZAE4AaBN PoGZiR0mM3uDSfjqZZWjKduubVsCpaC4t0R3LlUH96jcog9dgIV/vD1TEEnJxZ6rJRzG FZUwNqfiw7tzZJbroOpTTOj1J0PLOxSXBjbb5jIaHXh8tQuqE85A167akkOihurHSJ4u H0bRSMtYFM9VKK97e59hNZJGgESW4MaJ/NyOSB8wG6fb89aWLbgF2ZHuMQa/zUpmnfIw GL9w== 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 :message-id:date:subject:cc:to:from; bh=vR9mriX6hlc7+GX3Q1GVy/lLRo5KPjguZ7MrtBIvWz4=; b=Z4eVGo03JexndCh4zPFgXUcbVdxfioEumaFyMdpIPKg0HkgxAaotyWpv2pv70YoDvY JZbeJRQ8yjG2xShbPbOpEHphbC58ZBGH3/WH5zyx4rM57lvrGW3bYPnD+7lQTJjDsTeO vdEqRvw5Ugg6PZ6yALRZFYwdUAfshTsAlx/3aOKPJE2fNSHg683yqHRrLl9AJE9FnGIM +DAI0OowBq25g9yLdVaYYvtm4fjyfXpLV9kpn8iz0cAnb9dgG6ofH1olinoveI81/vTt Szo0JHtpZ6PxX6G5IdjrL0ROPP/kkvyARxUDJYSLF0uMMmPcNLhRjw0Ta+PVq7wzkGFb ay9g== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d3si7865048ejw.357.2020.09.21.01.05.22; Mon, 21 Sep 2020 01:05:45 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726983AbgIUIDD (ORCPT + 99 others); Mon, 21 Sep 2020 04:03:03 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:48692 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726945AbgIUICp (ORCPT ); Mon, 21 Sep 2020 04:02:45 -0400 Received: from DGGEMS411-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id BD625B29417C5FE20116; Mon, 21 Sep 2020 16:02:41 +0800 (CST) Received: from huawei.com (10.175.113.32) by DGGEMS411-HUB.china.huawei.com (10.3.19.211) with Microsoft SMTP Server id 14.3.487.0; Mon, 21 Sep 2020 16:02:31 +0800 From: Liu Shixin To: Peter Huewe , Jarkko Sakkinen , Jason Gunthorpe , "Arnd Bergmann" , Greg Kroah-Hartman CC: , , "Liu Shixin" Subject: [PATCH -next] tpm/st33zp24/i2c: simplify the return expression of st33zp24_i2c_remove Date: Mon, 21 Sep 2020 16:24:56 +0800 Message-ID: <20200921082456.2592242-1-liushixin2@huawei.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.113.32] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Simplify the return expression. Signed-off-by: Liu Shixin --- drivers/char/tpm/st33zp24/i2c.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/char/tpm/st33zp24/i2c.c b/drivers/char/tpm/st33zp24/i2c.c index 7c617edff4ca..b180171e5678 100644 --- a/drivers/char/tpm/st33zp24/i2c.c +++ b/drivers/char/tpm/st33zp24/i2c.c @@ -267,13 +267,8 @@ static int st33zp24_i2c_probe(struct i2c_client *client, static int st33zp24_i2c_remove(struct i2c_client *client) { struct tpm_chip *chip = i2c_get_clientdata(client); - int ret; - ret = st33zp24_remove(chip); - if (ret) - return ret; - - return 0; + return st33zp24_remove(chip); } static const struct i2c_device_id st33zp24_i2c_id[] = { -- 2.25.1