Re: [Linux-zigbee-devel] [PATCH net-next v3] 6lowpan: mac802154: fix coding style issues

2014-07-01 Thread Joe Perches
On Tue, 2014-07-01 at 21:49 -0700, Florian Fainelli wrote: > 2014-07-01 21:40 GMT-07:00 Joe Perches : > > On Tue, 2014-07-01 at 21:20 -0700, Florian Fainelli wrote: > >> Hi, > >> > >> 2014-07-01 20:31 GMT-07:00 Varka Bhadram : > >> > This

Re: [Linux-zigbee-devel] [PATCH net-next v3] 6lowpan: mac802154: fix coding style issues

2014-07-01 Thread Joe Perches
On Tue, 2014-07-01 at 21:20 -0700, Florian Fainelli wrote: > Hi, > > 2014-07-01 20:31 GMT-07:00 Varka Bhadram : > > This patch fixed the coding style issues reported by checkpatch.pl > > > > following issues fixed: > > CHECK: Alignment should match open parenthesis > > It seems to me like

Re: [Linux-zigbee-devel] [PATCH net-next] ieee802154: fix variable declaration and initializer

2014-03-18 Thread Joe Perches
On Tue, 2014-03-18 at 21:35 -0700, Eric Dumazet wrote: > On Tue, 2014-03-18 at 20:42 -0700, Joe Perches wrote: > > On Tue, 2014-03-18 at 20:32 -0700, Eric Dumazet wrote: > > > On Tue, 2014-03-18 at 21:19 -0600, Jean Sacren wrote: > > > > > > > 2) Fix the ini

Re: [Linux-zigbee-devel] [PATCH net-next] ieee802154: fix variable declaration and initializer

2014-03-18 Thread Joe Perches
On Tue, 2014-03-18 at 22:56 -0600, Jean Sacren wrote: > Stating it is a "fix" is not a false statement at all. !! falsely > changes the value to be int TWICE for nothing! Are you still not > convinced? Not so fast Jean. There's no logic change. Changing the type to bool does exactly the same thi

Re: [Linux-zigbee-devel] [PATCH net-next] ieee802154: fix variable declaration and initializer

2014-03-18 Thread Joe Perches
On Tue, 2014-03-18 at 20:32 -0700, Eric Dumazet wrote: > On Tue, 2014-03-18 at 21:19 -0600, Jean Sacren wrote: > > > 2) Fix the initializer by deleting the double logical negation > >operators as they don't serve any purpose. > > > ... > > > > static int phy_set_lbt(struct wpan_phy *phy, s

[Linux-zigbee-devel] [PATCH net-next 4/6] ieee802154: Convert uses of __constant_ to

2014-03-12 Thread Joe Perches
The use of __constant_ has been unnecessary for quite awhile now. Make these uses consistent with the rest of the kernel. Signed-off-by: Joe Perches --- net/ieee802154/6lowpan_rtnl.c | 2 +- net/ieee802154/af_ieee802154.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a

[Linux-zigbee-devel] [PATCH net-next 0/6] net: Convert uses of __constant_ to

2014-03-12 Thread Joe Perches
Joe Perches (6): 8021q: Convert uses of __constant_ to bluetooth: Convert uses of __constant_ to net: Convert uses of __constant_ to ieee802154: Convert uses of __constant_ to netfilter: Convert uses of __constant_ to tipc: Convert uses of __constant_ to net/8021q/vlan.h

Re: [Linux-zigbee-devel] [PATCH net-next v4 2/8] 6lowpan: add uncompress header size function

2014-02-26 Thread Joe Perches
On Wed, 2014-02-26 at 19:32 +0100, Alexander Aring wrote: > On Wed, Feb 26, 2014 at 10:24:45AM -0800, Joe Perches wrote: [] > > Perhaps the compiler would inline the assignment > > anyway if addr_mode is __builtin_constant_p [] > I am not sure what I should do now, ch

Re: [Linux-zigbee-devel] [PATCH net-next v4 2/8] 6lowpan: add uncompress header size function

2014-02-26 Thread Joe Perches
On Wed, 2014-02-26 at 16:10 +, David Laight wrote: > From: Alexander Aring [] > > diff --git a/net/ieee802154/6lowpan.h b/net/ieee802154/6lowpan.h [] > > +static inline u8 lowpan_addr_mode_size(const u8 addr_mode) > > +{ > > + switch (addr_mode) { > > + case LOWPAN_IPHC_ADDR_00: > > +

Re: [Linux-zigbee-devel] [PATCH net-next v4 6/8] 6lowpan: fix some checkpatch issues

2014-02-26 Thread Joe Perches
On Wed, 2014-02-26 at 17:05 +0100, Alexander Aring wrote: > Detected with: > > ./scripts/checkpatch.pl --strict -f net/ieee802154/6lowpan_rtnl.c Hello Alexander. Can I suggest to you (and to David) that the multiline comment style: /* * comment */ is fine and doesn't need correcting here at

Re: [Linux-zigbee-devel] [PATCH net-next 4/6] 6lowpan: fix some checkpatch issues

2014-02-21 Thread Joe Perches
On Fri, 2014-02-21 at 16:15 +0100, Alexander Aring wrote: > diff --git a/net/ieee802154/6lowpan_rtnl.c b/net/ieee802154/6lowpan_rtnl.c [] > @@ -484,8 +475,8 @@ lowpan_skb_fragmentation(struct sk_buff *skb, struct > net_device *dev) > err = lowpan_fragment_xmit(skb, head, header_lengt

Re: [Linux-zigbee-devel] [PATCH net-next 4/6] 6lowpan: add udp warning for elided checksum

2013-11-14 Thread Joe Perches
On Thu, 2013-11-14 at 16:48 +0100, Alexander Aring wrote: > Bit 5 of "UDP LOWPAN_NHC Format" indicate that the checksum can be elided. > The host need to calculate the udp checksum afterwards but this isn't > supported right now. [] > diff --git a/net/ieee802154/6lowpan.c b/net/ieee802154/6lowpan.c

Re: [Linux-zigbee-devel] [PATCH net-next 3/5] 6lowpan: use netdev_alloc_skb instead dev_alloc_skb

2013-10-25 Thread Joe Perches
On Sat, 2013-10-26 at 01:42 -0400, David Miller wrote: > From: Alexander Aring > Date: Thu, 24 Oct 2013 22:51:42 +0200 > > > @@ -1127,12 +1127,12 @@ lowpan_fragment_xmit(struct sk_buff *skb, u8 *head, > > > > lowpan_raw_dump_inline(__func__, "6lowpan fragment header", head, hlen); > > > >

Re: [Linux-zigbee-devel] [PATCH net-next 5/5] 6lowpan: remove unecessary break

2013-10-24 Thread Joe Perches
On Fri, 2013-10-25 at 07:28 +0400, Alexander Smirnov wrote: > > 25 окт. 2013 г., в 0:51, Alexander Aring написал(а): [] > > diff --git a/net/ieee802154/6lowpan.c b/net/ieee802154/6lowpan.c [] > > @@ -440,7 +440,6 @@ lowpan_uncompress_udp_header(struct sk_buff *skb, > > struct udphdr *uh) > >

Re: [Linux-zigbee-devel] [PATCH] net: af802154: Fix wrong structure declaration

2013-10-06 Thread Joe Perches
On Sun, 2013-10-06 at 14:44 -0700, Guenter Roeck wrote: > net_devce doesn't exist. [] > diff --git a/net/ieee802154/af802154.h b/net/ieee802154/af802154.h [] > @@ -25,7 +25,7 @@ > #define AF802154_H > > struct sk_buff; > -struct net_devce; > +struct net_device; That argues more for deletion th

Re: [Linux-zigbee-devel] [PATCH 11/14] mac802154: slaves manipulation routine

2011-12-19 Thread Joe Perches
On Mon, 2011-12-19 at 14:43 -0500, David Miller wrote: > From: Alexander Smirnov > > + if ((--priv->hw->open_count) == 0) > This is more canonical as "if (!--priv->hw->open_count)". Shrug. I think this is more readable and intelligible with the == 0. A test of a non-bool or non-ptr to a spec

[Linux-zigbee-devel] [PATCH 4/5] MAINTAINERS: ieee802154 fix pattern typo

2009-06-18 Thread Joe Perches
Signed-off-by: Joe Perches --- MAINTAINERS |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index f4175c5..2375de3 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2850,7 +2850,7 @@ W:http://apps.sourceforge.net/trac/linux-zigbee T