Linux bluetooth development
 help / color / mirror / Atom feed
* [PATCH bluetooth-next 0/2] 6lowpan cleanup
@ 2014-07-30  5:35 varkabhadram
  2014-07-30  5:35 ` [PATCH bluetooth-next 1/2] 6lowpan: remove unused macros varkabhadram
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: varkabhadram @ 2014-07-30  5:35 UTC (permalink / raw)
  To: linux-zigbee-devel; +Cc: linux-bluetooth, alex.aring, Varka Bhadram

From: Varka Bhadram <varkab@cdac.in>

This series removes the unused macros and function for 6lowpan

Varka Bhadram (2):
  6lowpan: remove unused macros
  6lowpan: remove unused function

 include/net/6lowpan.h |   26 --------------------------
 1 file changed, 26 deletions(-)

-- 
1.7.9.5


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

* [PATCH bluetooth-next 1/2] 6lowpan: remove unused macros
  2014-07-30  5:35 [PATCH bluetooth-next 0/2] 6lowpan cleanup varkabhadram
@ 2014-07-30  5:35 ` varkabhadram
  2014-07-30  5:35 ` [PATCH bluetooth-next 2/2] 6lowpan: remove unused function varkabhadram
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: varkabhadram @ 2014-07-30  5:35 UTC (permalink / raw)
  To: linux-zigbee-devel; +Cc: linux-bluetooth, alex.aring, Varka Bhadram

From: Varka Bhadram <varkab@cdac.in>

This patch removes the unused macros.

Signed-off-by: Varka Bhadram <varkab@cdac.in>
---
 include/net/6lowpan.h |   15 ---------------
 1 file changed, 15 deletions(-)

diff --git a/include/net/6lowpan.h b/include/net/6lowpan.h
index 3bb3503..614920a 100644
--- a/include/net/6lowpan.h
+++ b/include/net/6lowpan.h
@@ -75,10 +75,6 @@
 	 (((a)->s6_addr[14]) == (m)[6]) &&		\
 	 (((a)->s6_addr[15]) == (m)[7]))
 
-/* compare ipv6 addresses prefixes */
-#define ipaddr_prefixcmp(addr1, addr2, length) \
-	(memcmp(addr1, addr2, length >> 3) == 0)
-
 /*
  * check whether we can compress the IID to 16 bits,
  * it's possible for unicast adresses with first 49 bits are zero only.
@@ -92,17 +88,6 @@
 
 /* check whether the 112-bit gid of the multicast address is mappable to: */
 
-/* 9 bits, for FF02::1 (all nodes) and FF02::2 (all routers) addresses only. */
-#define lowpan_is_mcast_addr_compressable(a)	\
-	((((a)->s6_addr16[1]) == 0) &&		\
-	 (((a)->s6_addr16[2]) == 0) &&		\
-	 (((a)->s6_addr16[3]) == 0) &&		\
-	 (((a)->s6_addr16[4]) == 0) &&		\
-	 (((a)->s6_addr16[5]) == 0) &&		\
-	 (((a)->s6_addr16[6]) == 0) &&		\
-	 (((a)->s6_addr[14])  == 0) &&		\
-	 ((((a)->s6_addr[15]) == 1) || (((a)->s6_addr[15]) == 2)))
-
 /* 48 bits, FFXX::00XX:XXXX:XXXX */
 #define lowpan_is_mcast_addr_compressable48(a)	\
 	((((a)->s6_addr16[1]) == 0) &&		\
-- 
1.7.9.5


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

* [PATCH bluetooth-next 2/2] 6lowpan: remove unused function
  2014-07-30  5:35 [PATCH bluetooth-next 0/2] 6lowpan cleanup varkabhadram
  2014-07-30  5:35 ` [PATCH bluetooth-next 1/2] 6lowpan: remove unused macros varkabhadram
@ 2014-07-30  5:35 ` varkabhadram
  2014-07-30  5:51 ` [PATCH bluetooth-next 0/2] 6lowpan cleanup Alexander Aring
  2014-07-30  5:55 ` Marcel Holtmann
  3 siblings, 0 replies; 5+ messages in thread
From: varkabhadram @ 2014-07-30  5:35 UTC (permalink / raw)
  To: linux-zigbee-devel; +Cc: linux-bluetooth, alex.aring, Varka Bhadram

From: Varka Bhadram <varkab@cdac.in>

This patch removes the unused function.

Signed-off-by: Varka Bhadram <varkab@cdac.in>
---
 include/net/6lowpan.h |   11 -----------
 1 file changed, 11 deletions(-)

diff --git a/include/net/6lowpan.h b/include/net/6lowpan.h
index 614920a..d184df1 100644
--- a/include/net/6lowpan.h
+++ b/include/net/6lowpan.h
@@ -240,17 +240,6 @@ static inline int lowpan_fetch_skb_u8(struct sk_buff *skb, u8 *val)
 	return 0;
 }
 
-static inline int lowpan_fetch_skb_u16(struct sk_buff *skb, u16 *val)
-{
-	if (unlikely(!pskb_may_pull(skb, 2)))
-		return -EINVAL;
-
-	*val = (skb->data[0] << 8) | skb->data[1];
-	skb_pull(skb, 2);
-
-	return 0;
-}
-
 static inline bool lowpan_fetch_skb(struct sk_buff *skb,
 		void *data, const unsigned int len)
 {
-- 
1.7.9.5


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

* Re: [PATCH bluetooth-next 0/2] 6lowpan cleanup
  2014-07-30  5:35 [PATCH bluetooth-next 0/2] 6lowpan cleanup varkabhadram
  2014-07-30  5:35 ` [PATCH bluetooth-next 1/2] 6lowpan: remove unused macros varkabhadram
  2014-07-30  5:35 ` [PATCH bluetooth-next 2/2] 6lowpan: remove unused function varkabhadram
@ 2014-07-30  5:51 ` Alexander Aring
  2014-07-30  5:55 ` Marcel Holtmann
  3 siblings, 0 replies; 5+ messages in thread
From: Alexander Aring @ 2014-07-30  5:51 UTC (permalink / raw)
  To: varkabhadram; +Cc: linux-zigbee-devel, linux-bluetooth, Varka Bhadram

Hi Varka,


On Wed, Jul 30, 2014 at 11:05:10AM +0530, varkabhadram@gmail.com wrote:
> From: Varka Bhadram <varkab@cdac.in>
> 
> This series removes the unused macros and function for 6lowpan
> 

Acked-by: Alexander Aring <alex.aring@gmail.com>

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

* Re: [PATCH bluetooth-next 0/2] 6lowpan cleanup
  2014-07-30  5:35 [PATCH bluetooth-next 0/2] 6lowpan cleanup varkabhadram
                   ` (2 preceding siblings ...)
  2014-07-30  5:51 ` [PATCH bluetooth-next 0/2] 6lowpan cleanup Alexander Aring
@ 2014-07-30  5:55 ` Marcel Holtmann
  3 siblings, 0 replies; 5+ messages in thread
From: Marcel Holtmann @ 2014-07-30  5:55 UTC (permalink / raw)
  To: varkabhadram
  Cc: linux-zigbee-devel, BlueZ development, alex.aring, Varka Bhadram

Hi Varka,

> This series removes the unused macros and function for 6lowpan
> 
> Varka Bhadram (2):
>  6lowpan: remove unused macros
>  6lowpan: remove unused function
> 
> include/net/6lowpan.h |   26 --------------------------
> 1 file changed, 26 deletions(-)

both patches have been applied to bluetooth-next tree.

Regards

Marcel


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

end of thread, other threads:[~2014-07-30  5:55 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-30  5:35 [PATCH bluetooth-next 0/2] 6lowpan cleanup varkabhadram
2014-07-30  5:35 ` [PATCH bluetooth-next 1/2] 6lowpan: remove unused macros varkabhadram
2014-07-30  5:35 ` [PATCH bluetooth-next 2/2] 6lowpan: remove unused function varkabhadram
2014-07-30  5:51 ` [PATCH bluetooth-next 0/2] 6lowpan cleanup Alexander Aring
2014-07-30  5:55 ` Marcel Holtmann

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