]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
cifs: Use str_yes_no() helper in cifs_ses_add_channel()
authorThorsten Blum <thorsten.blum@linux.dev>
Mon, 9 Dec 2024 11:07:09 +0000 (12:07 +0100)
committerSteve French <stfrench@microsoft.com>
Wed, 11 Dec 2024 02:47:37 +0000 (20:47 -0600)
Remove hard-coded strings by using the str_yes_no() helper function.

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/sess.c

index 0bb77f9ec686138e81ca56b7e5b50d13b4fc02bb..3306fb65513682ff07d283868f09824e6860d99a 100644 (file)
@@ -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);
 
        /*