linux-cifs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: zhengbin <zhengbin13@huawei.com>
To: <sfrench@samba.org>, <linux-cifs@vger.kernel.org>,
	<samba-technical@lists.samba.org>
Cc: <zhengbin13@huawei.com>
Subject: [PATCH 1/2] fs/cifs/smb2ops.c: use true,false for bool variable
Date: Wed, 25 Dec 2019 11:30:20 +0800	[thread overview]
Message-ID: <1577244621-117474-2-git-send-email-zhengbin13@huawei.com> (raw)
In-Reply-To: <1577244621-117474-1-git-send-email-zhengbin13@huawei.com>

Fixes coccicheck warning:

fs/cifs/smb2ops.c:807:2-36: WARNING: Assignment of 0/1 to bool variable

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: zhengbin <zhengbin13@huawei.com>
---
 fs/cifs/smb2ops.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/cifs/smb2ops.c b/fs/cifs/smb2ops.c
index 6250370..2c50022 100644
--- a/fs/cifs/smb2ops.c
+++ b/fs/cifs/smb2ops.c
@@ -804,7 +804,7 @@ int open_shroot(unsigned int xid, struct cifs_tcon *tcon, struct cifs_fid *pfid)
 				sizeof(struct smb2_file_all_info),
 				&rsp_iov[1], sizeof(struct smb2_file_all_info),
 				(char *)&tcon->crfid.file_all_info))
-		tcon->crfid.file_all_info_is_valid = 1;
+		tcon->crfid.file_all_info_is_valid = true;

 oshr_exit:
 	mutex_unlock(&tcon->crfid.fid_mutex);
--
2.7.4


  reply	other threads:[~2019-12-25  3:23 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-25  3:30 [PATCH 0/2] fs/cifs: use true,false for bool variable zhengbin
2019-12-25  3:30 ` zhengbin [this message]
2019-12-25  3:30 ` [PATCH 2/2] fs/cifs/cifssmb.c: " zhengbin
2019-12-30  5:29 ` [PATCH 0/2] fs/cifs: " Steve French

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1577244621-117474-2-git-send-email-zhengbin13@huawei.com \
    --to=zhengbin13@huawei.com \
    --cc=linux-cifs@vger.kernel.org \
    --cc=samba-technical@lists.samba.org \
    --cc=sfrench@samba.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).