From: Varka Bhadram <var...@cdac.in>

This patch fix struct dgram_sock defination style.

We are using bit fields in the struct dgram_sock but
every bit field of type 'unsigned int'. In this case
remaining bit fields are unused here.

So by changing the style of declaration we can utilise
every bit field.

Signed-off-by: Varka Bhadram <var...@cdac.in>
---
 net/ieee802154/dgram.c |   14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/net/ieee802154/dgram.c b/net/ieee802154/dgram.c
index ef2ad8a..e166c2e 100644
--- a/net/ieee802154/dgram.c
+++ b/net/ieee802154/dgram.c
@@ -45,13 +45,13 @@ struct dgram_sock {
        struct ieee802154_addr src_addr;
        struct ieee802154_addr dst_addr;
 
-       unsigned int bound:1;
-       unsigned int connected:1;
-       unsigned int want_ack:1;
-       unsigned int secen:1;
-       unsigned int secen_override:1;
-       unsigned int seclevel:3;
-       unsigned int seclevel_override:1;
+       __u8    bound:1,
+               connected:1,
+               want_ack:1,
+               secen_override:1,
+               seclevel:3,
+               seclevel_override:1;
+       bool secen;
 };
 
 static inline struct dgram_sock *dgram_sk(const struct sock *sk)
-- 
1.7.9.5


------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
Linux-zigbee-devel mailing list
Linux-zigbee-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-zigbee-devel

Reply via email to