Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp2011131pxf; Fri, 26 Mar 2021 23:58:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwgKY61jmh3hVjLalet3LvTYUyCSR2o/Px3bx1aWn4vbxEqtrrVDvy/FU2t/KCHr5T9MVNk X-Received: by 2002:a05:6402:312b:: with SMTP id dd11mr18717290edb.149.1616828314232; Fri, 26 Mar 2021 23:58:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616828314; cv=none; d=google.com; s=arc-20160816; b=eW6bBu8bYWOcaXG03n+Nen6mtuOIhAMC/y/mNBS1CHDY6pv3su/hgwvM7zPGnkQHcX aX4onmOeLrzn6sAvibAj7dkio2sMTSLBucWqoieVAN7UORKnAwi2OWGW/RWcS8uudEyV hS//nMcji2HVBVQYU42wS0X6uK5E1X8ymP3e04F4fTQJqPMo+Fx0m8cCrohC3yMU7dwA LCC/RZe9M54NhzGS3FVXIQXceF8zIiLy0X71LBbMTmrr50XjBVXMu0D3UkFKCfwW0pb7 yQIEtuiFjYHj+UO/vUesRWMShRNKgJXcWtVm1VwwyQrnqCEfWINMhM1Uz+YhJnwWS8Kk 4Feg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject; bh=85fS3vkkqGPZjGDL/Lqhik7Tj+ZJ9NuedOh+eH7tk+0=; b=aSGzwHXNVyn1hzZ9lAHw9jQI7S5KhhWBYFMLVx/5VB8eUiMEWyIiTPnT9JkX1/TFS/ KTfe1JdhXGAMfD7uXOSciinduDcO/XmDSWOdh1hwveldUYyRUobtiuX75yRwy+6EehY5 7XqYbIkvi8YX+yeQkpNhJYwz/e6oG1Gukh/mbw2sdMi54JKcmaK+fk/4bCbnmsQ8i/Ez MCOYkE1iacYFsj3KbjJxWz8T/Z9RycCNHtpC9GR+qruYwfMYvxCKTpUx3d3XxR+wbTyq lvpPE9EbT+rMq/4IsHsY4t1KzUUvkhxVqW9jIvqvkkBlODLkh2NH7ScJQCyemzwbOJO0 jpYw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i21si8771718ejb.477.2021.03.26.23.58.12; Fri, 26 Mar 2021 23:58:34 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230238AbhC0Gun (ORCPT + 99 others); Sat, 27 Mar 2021 02:50:43 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:14156 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230174AbhC0GuL (ORCPT ); Sat, 27 Mar 2021 02:50:11 -0400 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4F6qCM0tyrznYxZ; Sat, 27 Mar 2021 14:47:27 +0800 (CST) Received: from [127.0.0.1] (10.40.192.162) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.498.0; Sat, 27 Mar 2021 14:49:56 +0800 Subject: Re: [PATCH 05/15] remove useless return statement for void function To: , , , References: <1616827256-51840-1-git-send-email-tanxiaofei@huawei.com> <1616827256-51840-6-git-send-email-tanxiaofei@huawei.com> CC: , , , From: Xiaofei Tan Message-ID: Date: Sat, 27 Mar 2021 14:49:56 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1 MIME-Version: 1.0 In-Reply-To: <1616827256-51840-6-git-send-email-tanxiaofei@huawei.com> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.40.192.162] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Oh, sorry, the title doesn't contain subsystem and module name. I'll send v2 later. Please ignore this one. thanks. On 2021/3/27 14:40, Xiaofei Tan wrote: > Remove useless return statement for void function, reported by > checkpatch.pl. > > WARNING: void function return statements are not generally useful > FILE: drivers/acpi/acpi_ipmi.c:482: > + return; > +} > > Signed-off-by: Xiaofei Tan > --- > drivers/acpi/acpi_ipmi.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/acpi/acpi_ipmi.c b/drivers/acpi/acpi_ipmi.c > index 9d6c0fc..bbd00d9 100644 > --- a/drivers/acpi/acpi_ipmi.c > +++ b/drivers/acpi/acpi_ipmi.c > @@ -478,7 +478,6 @@ static void ipmi_register_bmc(int iface, struct device *dev) > ipmi_dev_release(ipmi_device); > err_ref: > put_device(smi_data.dev); > - return; > } > > static void ipmi_bmc_gone(int iface) >