Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp2009707pxf; Fri, 26 Mar 2021 23:54:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxMlIibEnE/B4ivuCHXiobdAkhQgvm8KCaCAjYHpMbb/CL+ExClDuc5tPeLT2WMmBTctFGa X-Received: by 2002:a17:906:5e55:: with SMTP id b21mr18977376eju.289.1616828084372; Fri, 26 Mar 2021 23:54:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616828084; cv=none; d=google.com; s=arc-20160816; b=A2+G7vKoBjdja39i6DYQpYFoP6nFjaCZP1AMjUxXpj/0Qtnb+ANM+uSp1YecmIjFyM 7NUBKgsWCDz/Bsv/i0lX7sILD9L55ps7dDxsf6a9Khy/s++4B0xhtc2yI5pTHRyIkJMr 7jMFG3666lfvzItTRlzsJNSaOeorPElDVm7w1P9XqxDP9Vgg4B16IE4TnMpIEKc36WF+ yRqAoGlPs7n48v0r6iYn5o2oJHwarqW0JSTLyCGQG9qC3b+0toFVyU13xvFrHisNrI5U H6TJAxkMwPPiWygpCYgpgwRQOhGxP6DlsLHtf3h4/FtMk/ay+9oeYg5booKDOcq8tLPJ x//A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=6vTGz06nxFPDB+fAAqAFySfkJWEKctlXbEbJ1hZGvDg=; b=ydOzzAeTldsZSjJY4V0ahNW64WERurYeDAA5ixMmZ8gT1inL5geWwB9R6oo8NtuVue +JOU72/RrIqxyNT6uaOoJAiA5s3tVFPXsgxKHqpssEQfnMPgh2azbr7vTE8SmRvVqAr1 2g2bKT8E/rfT9HRGzs710waggTp5x2VBM7KPYeW/FJ9Ew1iZx1+i6oQIryPr+KOjXZ8Q UHiohpkfKqNWsyP/ofZZKcrcxDcpeqa3XvGw0neoarnciMddTo5jyY5Q5FYW+9IhrKpb 6i5dJg4HbFHBPClPnr2mJ3zJy3jGBZ3RrQ43+rdzS+OiVpxum2wCL+urAqjEV2JW0Vrx dqBQ== 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 ka24si8773006ejc.64.2021.03.26.23.54.21; Fri, 26 Mar 2021 23:54:44 -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 S231512AbhC0Gob (ORCPT + 99 others); Sat, 27 Mar 2021 02:44:31 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:15339 "EHLO szxga07-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231249AbhC0GoC (ORCPT ); Sat, 27 Mar 2021 02:44:02 -0400 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga07-in.huawei.com (SkyGuard) with ESMTP id 4F6q4m1tf3z93nX; Sat, 27 Mar 2021 14:41:44 +0800 (CST) Received: from localhost.localdomain (10.67.165.24) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.498.0; Sat, 27 Mar 2021 14:43:35 +0800 From: Xiaofei Tan To: , , , CC: Xiaofei Tan , , , , Subject: [PATCH 05/15] remove useless return statement for void function Date: Sat, 27 Mar 2021 14:40:46 +0800 Message-ID: <1616827256-51840-6-git-send-email-tanxiaofei@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1616827256-51840-1-git-send-email-tanxiaofei@huawei.com> References: <1616827256-51840-1-git-send-email-tanxiaofei@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.165.24] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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) -- 2.8.1