lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20240831095026.4159093-1-lihongbo22@huawei.com>
Date: Sat, 31 Aug 2024 17:50:26 +0800
From: Hongbo Li <lihongbo22@...wei.com>
To: <3chas3@...il.com>, <linux-atm-general@...ts.sourceforge.net>
CC: <netdev@...r.kernel.org>, <lihongbo22@...wei.com>
Subject: [PATCH -next] atm: nicstar: Use str_enabled_disabled() helper

Use str_enabled_disabled() helper instead of open
coding the same.

Signed-off-by: Hongbo Li <lihongbo22@...wei.com>
---
 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);
-- 
2.34.1


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ