Skip to contentSkip to conversation

cifs: Use str_yes_no() helper in cifs_ses_add_channel()

PATCH RESEND Applied Thorsten Blum 2 participants 2 messages Dec 9, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 cifs: Use str_yes_no() helper in cifs_ses_add_channel()

Remove hard-coded strings by using the str_yes_no() helper function.

---
 fs/smb/client/sess.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
fs/smb/client/sess.c +2 -2
index 0bb77f9ec686..3306fb655136 100644
@@ -488,11 +488,11 @@ cifs_ses_add_channel(struct cifs_ses *ses,
 
 	if (iface->sockaddr.ss_family == AF_INET)
 		cifs_dbg(FYI, "adding channel to ses %p (speed:%zu bps rdma:%s ip:%pI4)\n",
-			 ses, iface->speed, iface->rdma_capable ? "yes" : "no",
+			 ses, iface->speed, str_yes_no(iface->rdma_capable),
 			 &ipv4->sin_addr);
 	else
 		cifs_dbg(FYI, "adding channel to ses %p (speed:%zu bps rdma:%s ip:%pI6)\n",
-			 ses, iface->speed, iface->rdma_capable ? "yes" : "no",
+			 ses, iface->speed, str_yes_no(iface->rdma_capable),
 			 &ipv6->sin6_addr);
 
 	/*
Signature · 1 line
2.47.1
Applied
#1 lore raw

merged into cifs-2.6.git for-next

Quoted 30 lines · Thorsten Blum

Remove hard-coded strings by using the str_yes_no() helper function.

---
 fs/smb/client/sess.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
fs/smb/client/sess.c +2 -3
index 0bb77f9ec686..3306fb655136 100644
@@ -488,11 +488,11 @@ cifs_ses_add_channel(struct cifs_ses *ses,
 
        if (iface->sockaddr.ss_family == AF_INET)
                cifs_dbg(FYI, "adding channel to ses %p (speed:%zu bps rdma:%s ip:%pI4)\n",
-                        ses, iface->speed, iface->rdma_capable ? "yes" : "no",
+                        ses, iface->speed, str_yes_no(iface->rdma_capable),
                         &ipv4->sin_addr);
        else
                cifs_dbg(FYI, "adding channel to ses %p (speed:%zu bps rdma:%s ip:%pI6)\n",
-                        ses, iface->speed, iface->rdma_capable ? "yes" : "no",
+                        ses, iface->speed, str_yes_no(iface->rdma_capable),
                         &ipv6->sin6_addr);
 
        /*
--

2.47.1

Signature · 3 lines
Thanks,

Steve