Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1692359iob; Thu, 5 May 2022 06:36:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyJ5Gg9ObYFVV8PGDbqmGnxFdxa2CIic7+4K6VckRRul+NPHa034hbZNsxeMIlI8A7sMJLK X-Received: by 2002:a17:907:94c5:b0:6f4:6f30:5083 with SMTP id dn5-20020a17090794c500b006f46f305083mr16282607ejc.507.1651757768321; Thu, 05 May 2022 06:36:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651757768; cv=none; d=google.com; s=arc-20160816; b=btqm6Lqd/AAR5pEvdOV6pQSlssU+E+wWyELPpmr/qFRg7P22eDD4VeU2VDNNd0RFBM 5zeHZxLOTw83JUnYMCsCvNZLUZ2+xir3WDinL6h2YHUHpgnhSN5rWbBH4oAvWIq2cj7m 0V/9+90zfCpHOvzJbm05l0zhWqcMg/cUftYy0taHWIyMbHNqqYCG4IadLQ/W6mEuf04l csLIETgiLjr+Y1oCSmpCQ0lGkbCCrtjvAmrIeHoBUeuFIv4D8fM+SgfeDXFa+ue3KB3j oG935xPSF8yoSpVzAbf7JifGvJuxLPlxBLnm9Jwj6Jvjq/2YLgxNWJiA24T4Y2FIzYW6 KaAA== 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:dkim-signature; bh=Moay9sBk8rVdbaL64S3jDlKhD4QT9fJRTKr12K5jA4Q=; b=ur0HhMLsb1nP8TGZedXEtNWte/h6HG0TkI1rhwVx/gRDJLhxQ/LQFIrL5RqRXdPkST DLI0/9fPUQgjyG5cm3YnvHwXClv8WkrnxsmDRCKzTVmWR/WHZFvAE6/wDrhW1Gto1oTy /8GImV4UEqLIE4AlzX6a8iBT7WFN1JTZnOA4DIQfyyeyLyastkEu0oobwIcSG5sCFGno QZr5cegMpoqy7T5yowsE7Lsx6B3S430VcJ40oieelOnwB6fDLBSCNVWh6i+bigURXp+e ksx3RftrQdcC0bxfE5oWorx3xOfXKPJEdppiDk+PgTDMUshdTqcrrTHuVhylJa2DIULZ wPuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="m2o/3KXU"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bo25-20020a0564020b3900b00427bbd5702csi1739461edb.184.2022.05.05.06.35.42; Thu, 05 May 2022 06:36:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="m2o/3KXU"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238202AbiEECXi (ORCPT + 99 others); Wed, 4 May 2022 22:23:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55488 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234203AbiEECXg (ORCPT ); Wed, 4 May 2022 22:23:36 -0400 Received: from mail-pf1-x431.google.com (mail-pf1-x431.google.com [IPv6:2607:f8b0:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 991D94889F for ; Wed, 4 May 2022 19:19:58 -0700 (PDT) Received: by mail-pf1-x431.google.com with SMTP id h1so2531324pfv.12 for ; Wed, 04 May 2022 19:19:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Moay9sBk8rVdbaL64S3jDlKhD4QT9fJRTKr12K5jA4Q=; b=m2o/3KXUn3ZQ20LMuY5L26YynIH0bHNe0Fuf3ch/mnqdG+uF0EhIGNRoA94CF7hkkU DICEutWk4PRZI4AgQ8JvG5IkzCYvyR4tmrErX7caGBsnZUMCBejo6+xhAxENgPsaMHhK ueKhrdkcSY04Yv5M7PPd3D42BeiiPApWaVfUxe9vSaHQ3Dlg7JWpS2NEtItND9bzw1dP YGGxf0Y0M5Jnt/pw4tYfLUN47x1o/BiRsOEFtnthcKW/oQQvaxmZFnWlTr6XuhLZJFdZ 1vufCkBVn6X7bcLuzA9meKQLomIuFG+ictp7pKua3eHxp+fyx3yYdGwkTfrlAX9SmSWO TW7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Moay9sBk8rVdbaL64S3jDlKhD4QT9fJRTKr12K5jA4Q=; b=tq1vT3i4LXFv0svFWQMIl4O+Co14tAbOCIA+jdvMv65ys5fbvZRq2MgdHayNaJnLw8 kPXp6RXaHoMGoup/X8XpTYL+9+4fZ0sgtk+Y1+r6wNxf9q+T0bHhbO5OhoTnvwfQO8e8 JvxqRJJqJnDS4QZEBbQvRAjt920yFEldMNcG7yHj5qKplHavlhWYOzMLIr2V/CYf1O/j +ULAebfkg+jOdcPCF6ddbOge/iec3TODTu5gYiXjbbWQosS17MbquuRvy8zo9X8C7ZKF pFgmf0DHX8Cgb8dPBjuOiIrvhxixgwuCV77l77LSFASg++W9LGIW1qAvG7jNQEf3dkwg zqAQ== X-Gm-Message-State: AOAM533BZrDXnzTMX3eJhHURZbl8XWC7cS5g4VzWwQm1CHAYA7x5e/Ir QFM9iRGo3q5EBl1MbjVmkJvTmFuameY= X-Received: by 2002:a05:6a00:1353:b0:50e:982:6a4f with SMTP id k19-20020a056a00135300b0050e09826a4fmr11808215pfu.50.1651717198174; Wed, 04 May 2022 19:19:58 -0700 (PDT) Received: from localhost.localdomain ([193.203.214.57]) by smtp.gmail.com with ESMTPSA id e185-20020a621ec2000000b0050dc76281bdsm76984pfe.151.2022.05.04.19.19.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 May 2022 19:19:57 -0700 (PDT) From: cgel.zte@gmail.com X-Google-Original-From: chi.minghao@zte.com.cn To: alexandre.belloni@bootlin.com Cc: npitre@baylibre.com, linux-i3c@lists.infradead.org, linux-kernel@vger.kernel.org, Minghao Chi , Zeal Robot Subject: [PATCH] i3c/master: simplify the return expression of i3c_hci_remove() Date: Thu, 5 May 2022 02:19:54 +0000 Message-Id: <20220505021954.54524-1-chi.minghao@zte.com.cn> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Minghao Chi Simplify the return expression. Reported-by: Zeal Robot Signed-off-by: Minghao Chi --- drivers/i3c/master/mipi-i3c-hci/core.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/i3c/master/mipi-i3c-hci/core.c b/drivers/i3c/master/mipi-i3c-hci/core.c index 8c01123dc4ed..6aef5ce43cc1 100644 --- a/drivers/i3c/master/mipi-i3c-hci/core.c +++ b/drivers/i3c/master/mipi-i3c-hci/core.c @@ -768,13 +768,8 @@ static int i3c_hci_probe(struct platform_device *pdev) static int i3c_hci_remove(struct platform_device *pdev) { struct i3c_hci *hci = platform_get_drvdata(pdev); - int ret; - ret = i3c_master_unregister(&hci->master); - if (ret) - return ret; - - return 0; + return i3c_master_unregister(&hci->master); } static const __maybe_unused struct of_device_id i3c_hci_of_match[] = { -- 2.25.1