Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp729015ybg; Sun, 26 Jul 2020 20:06:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz7tSBiSJvgiI2zFZRGxF1baLPn02VtWe4t5P0Al2Dn9Z3wFE4fVE2a9KfPxuhpsZAB8ENk X-Received: by 2002:a05:6402:204f:: with SMTP id bc15mr18113480edb.70.1595819164119; Sun, 26 Jul 2020 20:06:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595819164; cv=none; d=google.com; s=arc-20160816; b=wV9wjfr7x2q3eqkudDdKlDhd3gd2fb0094ZMrRFFkWxpNovkdcBnh3jk3jAPOzGvlH Imiz9PjZyUlp+trTl8RrLSV1Su53oUygOA8SwF53dK2gf+sVQKGJHMMC+ktJopsTdXxW O07R9mGKrKJKRT8C7zhSZbfjAwDHbQDpY4rFEipeauE4FMrikQowEka/TFYi2jMZt99M nX1/0LpIoV8xuczJXed8pLNla+xSY6xjAsRdzmx6nfnEVEglKQXrURVOfxxD9pX3rvqt K2fB57k26vmr1YJTKc1w4xDLfKOerZ1p2rXzTgQrOMloVhrywgIYzQFP0cIP/1t1eG9G GpnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=T4FJIUTfla1crYR0CzGAJ6VfWn0L4y692KgtWqNPg1o=; b=q+oh7L1svEEfiTnu79gG+vSklwUYKClIRgblSqfB3E121/rGp+bA0p1lG6CGCOM9jZ jbALj2BDboppGrOKSXGrOWtKXSxMFoBxyCZVEmM9sVOEOldGqgenZOn5acPragVrKqp3 +fOjUTbCcfHbIZtoxj6DyPbadyoB7lhripQgRiJOJvCdDxKyl7vsUbgZuceqRweqhN2m ovmjvP7TUM81/4y0LiOG837/gOK6+o8UPXvcdsowc+OqYlAmSOpQ/D6ZIR2h40W1ugfL /CYI6l0qXOCVxl+GxK0kUZH4nVscmciwSNVAJA+hsqG93YSKC5GEhXUK4COCdiBuHzmF 2z4A== 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 x17si5677944edq.338.2020.07.26.20.05.42; Sun, 26 Jul 2020 20:06:04 -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 S1726953AbgG0DEU (ORCPT + 99 others); Sun, 26 Jul 2020 23:04:20 -0400 Received: from smtp23.cstnet.cn ([159.226.251.23]:41626 "EHLO cstnet.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726044AbgG0DEU (ORCPT ); Sun, 26 Jul 2020 23:04:20 -0400 Received: from localhost (unknown [159.226.5.99]) by APP-03 (Coremail) with SMTP id rQCowACX_wEoRB5fMetnAw--.37467S2; Mon, 27 Jul 2020 11:04:09 +0800 (CST) From: Xu Wang To: andriy.shevchenko@linux.intel.com, lee.jones@linaro.org Cc: linux-kernel@vger.kernel.org, Xu Wang Subject: [PATCH] intel_soc_pmic_mrfld: simplify the return expression of intel_scu_ipc_dev_iowrite8() Date: Mon, 27 Jul 2020 03:04:07 +0000 Message-Id: <20200727030407.8820-1-vulab@iscas.ac.cn> X-Mailer: git-send-email 2.17.1 X-CM-TRANSID: rQCowACX_wEoRB5fMetnAw--.37467S2 X-Coremail-Antispam: 1UD129KBjvdXoWruF47GF4DJF4kWFWUWrW5GFg_yoW3trc_GF W5Xr4xZryUGr9Y934kCrWSkryv9F10g3ykGFn2qF45J3ZFvF18ur90vFn8W348Zr4UAF1D Gr1xWryxAr47ujkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUb2kYjsxI4VW3JwAYFVCjjxCrM7AC8VAFwI0_Jr0_Gr1l1xkIjI8I 6I8E6xAIw20EY4v20xvaj40_Wr0E3s1l1IIY67AEw4v_Jr0_Jr4l8cAvFVAK0II2c7xJM2 8CjxkF64kEwVA0rcxSw2x7M28EF7xvwVC0I7IYx2IY67AKxVW5JVW7JwA2z4x0Y4vE2Ix0 cI8IcVCY1x0267AKxVWxJVW8Jr1l84ACjcxK6I8E87Iv67AKxVW8Jr0_Cr1UM28EF7xvwV C2z280aVCY1x0267AKxVWxJr0_GcWle2I262IYc4CY6c8Ij28IcVAaY2xG8wAqx4xG64xv F2IEw4CE5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_Jrv_JF1lYx0Ex4A2jsIE14v26r4UJV WxJr1lOx8S6xCaFVCjc4AY6r1j6r4UM4x0Y48IcxkI7VAKI48JMxkIecxEwVAFwVW8GwCF 04k20xvY0x0EwIxGrwCFx2IqxVCFs4IE7xkEbVWUJVW8JwC20s026c02F40E14v26r1j6r 18MI8I3I0E7480Y4vE14v26r106r1rMI8E67AF67kF1VAFwI0_JF0_Jw1lIxkGc2Ij64vI r41lIxAIcVC0I7IYx2IY67AKxVWUJVWUCwCI42IY6xIIjxv20xvEc7CjxVAFwI0_Jr0_Gr 1lIxAIcVCF04k26cxKx2IYs7xG6r1j6r1xMIIF0xvEx4A2jsIE14v26r1j6r4UMIIF0xvE x4A2jsIEc7CjxVAFwI0_Jr0_GrUvcSsGvfC2KfnxnUUI43ZEXa7IU058n5UUUUU== X-Originating-IP: [159.226.5.99] X-CM-SenderInfo: pyxotu46lvutnvoduhdfq/1tbiAgkKA1JhbmI0GgABsS Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Simplify the return expression. Signed-off-by: Xu Wang --- drivers/mfd/intel_soc_pmic_mrfld.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/mfd/intel_soc_pmic_mrfld.c b/drivers/mfd/intel_soc_pmic_mrfld.c index bd94c989d232..71da861e8c27 100644 --- a/drivers/mfd/intel_soc_pmic_mrfld.c +++ b/drivers/mfd/intel_soc_pmic_mrfld.c @@ -91,13 +91,8 @@ static int bcove_ipc_byte_reg_write(void *context, unsigned int reg, { struct intel_soc_pmic *pmic = context; u8 ipc_in = val; - int ret; - ret = intel_scu_ipc_dev_iowrite8(pmic->scu, reg, ipc_in); - if (ret) - return ret; - - return 0; + return intel_scu_ipc_dev_iowrite8(pmic->scu, reg, ipc_in); } static const struct regmap_config bcove_regmap_config = { -- 2.17.1