The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH] cifs: avoid mixing bool and le16
@ 2008-07-23 23:52 Harvey Harrison
  2008-07-24  0:19 ` Steve French
  2008-07-25 18:25 ` Al Viro
  0 siblings, 2 replies; 5+ messages in thread
From: Harvey Harrison @ 2008-07-23 23:52 UTC (permalink / raw)
  To: Steve French; +Cc: Andrew Morton, LKML

fs/cifs/cifssmb.c:3917:13: warning: incorrect type in assignment (different base types)
fs/cifs/cifssmb.c:3917:13:    expected bool [unsigned] [usertype] is_unicode
fs/cifs/cifssmb.c:3917:13:    got restricted __le16

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
---
 fs/cifs/cifssmb.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/fs/cifs/cifssmb.c b/fs/cifs/cifssmb.c
index 4511b70..56f1a71 100644
--- a/fs/cifs/cifssmb.c
+++ b/fs/cifs/cifssmb.c
@@ -3914,7 +3914,7 @@ parse_DFS_referrals(TRANSACTION2_GET_DFS_REFER_RSP *pSMBr,
 	bool is_unicode;
 	struct dfs_referral_level_3 *ref;
 
-	is_unicode = pSMBr->hdr.Flags2 & SMBFLG2_UNICODE;
+	is_unicode = !!(pSMBr->hdr.Flags2 & SMBFLG2_UNICODE);
 	*num_of_nodes = le16_to_cpu(pSMBr->NumberOfReferrals);
 
 	if (*num_of_nodes < 1) {
-- 
1.5.6.4.570.g052e




^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-07-25 18:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-23 23:52 [PATCH] cifs: avoid mixing bool and le16 Harvey Harrison
2008-07-24  0:19 ` Steve French
2008-07-24  0:24   ` Harvey Harrison
2008-07-24  0:26     ` Steve French
2008-07-25 18:25 ` Al Viro

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox