Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F131825745
D28762.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
692 B
Referenced Files
None
Subscribers
None
D28762.diff
View Options
diff --git a/sys/ofed/drivers/infiniband/core/uverbs.h b/sys/ofed/drivers/infiniband/core/uverbs.h
--- a/sys/ofed/drivers/infiniband/core/uverbs.h
+++ b/sys/ofed/drivers/infiniband/core/uverbs.h
@@ -64,8 +64,10 @@
#define INIT_UDATA_BUF_OR_NULL(udata, ibuf, obuf, ilen, olen) \
do { \
- (udata)->inbuf = (ilen) ? (const void __user *) (ibuf) : NULL; \
- (udata)->outbuf = (olen) ? (void __user *) (obuf) : NULL; \
+ (udata)->inbuf = ((ilen) != 0) ? \
+ (const void __user *) (ibuf) : NULL; \
+ (udata)->outbuf = ((olen) != 0) ? \
+ (void __user *) (obuf) : NULL; \
(udata)->inlen = (ilen); \
(udata)->outlen = (olen); \
} while (0)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Oct 12, 12:02 PM (12 h, 22 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
23622311
Default Alt Text
D28762.diff (692 B)
Attached To
Mode
D28762: ofed: quiet gcc -Wint-in-bool-context
Attached
Detach File
Event Timeline
Log In to Comment