Skip to content

Commit 8676c4d

Browse files
tobluxsmfrench
authored andcommitted
cifs: Use str_yes_no() helper in cifs_ses_add_channel()
Remove hard-coded strings by using the str_yes_no() helper function. Signed-off-by: Thorsten Blum <[email protected]> Signed-off-by: Steve French <[email protected]>
1 parent bb57c81 commit 8676c4d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fs/smb/client/sess.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -488,11 +488,11 @@ cifs_ses_add_channel(struct cifs_ses *ses,
488488

489489
if (iface->sockaddr.ss_family == AF_INET)
490490
cifs_dbg(FYI, "adding channel to ses %p (speed:%zu bps rdma:%s ip:%pI4)\n",
491-
ses, iface->speed, iface->rdma_capable ? "yes" : "no",
491+
ses, iface->speed, str_yes_no(iface->rdma_capable),
492492
&ipv4->sin_addr);
493493
else
494494
cifs_dbg(FYI, "adding channel to ses %p (speed:%zu bps rdma:%s ip:%pI6)\n",
495-
ses, iface->speed, iface->rdma_capable ? "yes" : "no",
495+
ses, iface->speed, str_yes_no(iface->rdma_capable),
496496
&ipv6->sin6_addr);
497497

498498
/*

0 commit comments

Comments
 (0)