From patchwork Tue Aug 27 02:52:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hongbo Li X-Patchwork-Id: 13778746 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DFE6B747F for ; Tue, 27 Aug 2024 02:44:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.188 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724726700; cv=none; b=Y4TQ6PVVxtL2e5jQIBwV0oTzEuUUYUcSciZJOT8gwdPuIixTkR5bO7Rcg7UIvtXAf1pDOUUz8LxzjuHMQnM6Fa37d8WagxLn7ARA73KS8xdyxY9BjpO6w1CtQrd5HaiirKPMIhVSTt+5pYDsLPDnixwwEBp9pMm5ZwPTCEp2f/8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724726700; c=relaxed/simple; bh=WkU3YUVyIE5OdXMRadChk32o9UunAmkBh10u/AyoyMA=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=a/ovMZ0eQBLp08GZagbbKPr3eGmyilkIA/cnleKrWIkRxckg3wwkZ/CNs/EWGgsyUT/ge20Mvx9PECU9gG429ErEErkda/DNXKu3vpgqb9jRn0iJfv5LUDIi2bNG3l+x/bpaP3+o+soeyB6iXv9Fqsojmh2ADvAVKlBM45aftrE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=45.249.212.188 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.19.163.48]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4WtBfj1w5zzfbYg; Tue, 27 Aug 2024 10:42:53 +0800 (CST) Received: from dggpeml500022.china.huawei.com (unknown [7.185.36.66]) by mail.maildlp.com (Postfix) with ESMTPS id 8516018007C; Tue, 27 Aug 2024 10:44:56 +0800 (CST) Received: from huawei.com (10.90.53.73) by dggpeml500022.china.huawei.com (7.185.36.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.39; Tue, 27 Aug 2024 10:44:56 +0800 From: Hongbo Li To: , , , , , CC: , Subject: [PATCH net-next v2 0/2] net/ncsi: Use str_up_down to simplify the code Date: Tue, 27 Aug 2024 10:52:44 +0800 Message-ID: <20240827025246.963115-1-lihongbo22@huawei.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To dggpeml500022.china.huawei.com (7.185.36.66) X-Patchwork-Delegate: kuba@kernel.org In commit a98ae7f045b2, str_up_down() helper is introduced to return "up" or "down" string literal, so we can use it to simplify the code and fix the coccinelle warning. v2: - change subject into net-next v1: https://lore.kernel.org/netdev/20240823162144.GW2164@kernel.org/T/ Hongbo Li (2): net/ncsi: Use str_up_down to simplify the code net/ncsi: Use str_up_down to simplify the code net/ncsi/ncsi-aen.c | 2 +- net/ncsi/ncsi-manage.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)