From patchwork Sat Aug 31 09:50:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hongbo Li X-Patchwork-Id: 13785999 Received: from szxga04-in.huawei.com (szxga04-in.huawei.com [45.249.212.190]) (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 AD10614D449 for ; Sat, 31 Aug 2024 09:42:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.190 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725097339; cv=none; b=r5/wChocsnPOhi70khuflon4IU6N7/x3rC3Qndi5RRQE19Xklx9FVstGDnd3GKUY29IMQJFWzbyYMVbm4Bhi7L7Z5DlG6MZjhHQ/7kxjHDKz8Nuq1W1CIGxOos2oyX8wY7oVWwum2zAhLHaVtsXjTGEAuJC22BL3hIC3cynbVaQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725097339; c=relaxed/simple; bh=Iya46xS/QNAaIogwRcJg3m+FNEl26l1PzcBpZtA1OKg=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=MtT989MvTV9jPBnCjI4jGeI/iU3W5lmGnwCiRlXNaas3hHr6WLOgcNFFrJGT18K9lH6671p6j5DD8lYznCQyIXgofkoF4DdO/V7plmdFX7S5DneEsAlX1hm9Z6EufRBEfgHpNYDwTnfNBMj8bFcoXW0lzrsjiyrXWWB6HJPgPKs= 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.190 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.162.112]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4WwqmR52jTz2CpJn; Sat, 31 Aug 2024 17:41:59 +0800 (CST) Received: from dggpeml500022.china.huawei.com (unknown [7.185.36.66]) by mail.maildlp.com (Postfix) with ESMTPS id D26691401E9; Sat, 31 Aug 2024 17:42:14 +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; Sat, 31 Aug 2024 17:42:14 +0800 From: Hongbo Li To: <3chas3@gmail.com>, CC: , Subject: [PATCH -next] atm: nicstar: Use str_enabled_disabled() helper Date: Sat, 31 Aug 2024 17:50:26 +0800 Message-ID: <20240831095026.4159093-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) Use str_enabled_disabled() helper instead of open coding the same. Signed-off-by: Hongbo Li --- drivers/atm/nicstar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/atm/nicstar.c b/drivers/atm/nicstar.c index 27153d6bc781..7b89a8191872 100644 --- a/drivers/atm/nicstar.c +++ b/drivers/atm/nicstar.c @@ -1559,7 +1559,7 @@ static void ns_close(struct atm_vcc *vcc) card->rsq.base, card->rsq.next, card->rsq.last, readl(card->membase + RSQT)); printk("Empty free buffer queue interrupt %s \n", - card->efbie ? "enabled" : "disabled"); + str_enabled_disabled(card->efbie)); printk("SBCNT = %d count = %d LBCNT = %d count = %d \n", ns_stat_sfbqc_get(stat), card->sbpool.count, ns_stat_lfbqc_get(stat), card->lbpool.count);