projects
/
platform
/
core
/
system
/
kdbus-bus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ba6dbd
)
kdbus_offset_set_user: kill unnecessary use of typeof()
author
Daniel Mack
<zonque@gmail.com>
Sun, 15 Dec 2013 18:38:31 +0000
(19:38 +0100)
committer
Daniel Mack
<zonque@gmail.com>
Sun, 15 Dec 2013 18:38:31 +0000
(19:38 +0100)
internal.h
patch
|
blob
|
history
diff --git
a/internal.h
b/internal.h
index c6681009013af1b45ae567a7229ee4ceee856dc2..689aa427a74e026049ce9d27dd6670f25e6b7ebf 100644
(file)
--- a/
internal.h
+++ b/
internal.h
@@
-78,10
+78,10
@@
*
* Returns: the result of copy_to_user()
*/
-#define kdbus_offset_set_user(_s, _b, _t)
\
-({
\
- u64 __user *_sz = (void __user *)(_b) + offsetof(
typeof(_t)
, offset); \
- copy_to_user(_sz, _s, sizeof(__u64));
\
+#define kdbus_offset_set_user(_s, _b, _t) \
+({ \
+ u64 __user *_sz = (void __user *)(_b) + offsetof(
_t
, offset); \
+ copy_to_user(_sz, _s, sizeof(__u64)); \
})
/**