[PATCH] staging/wlan-ng: use ether_addr_equal_unaligned

2014-06-01 Thread Denis Pithon
This patch get rid of all memcmp() on ethernet addresses in wlan-ng. Replaced with ether_addr_equal_unaligned(). Signed-off-by: Denis Pithon denis.pit...@gmail.com --- drivers/staging/wlan-ng/p80211conv.c | 6 +++--- drivers/staging/wlan-ng/prism2sta.c | 16 +--- 2 files changed

[PATCH 3/4] staging/wlan-ng: multicast address checking

2014-05-16 Thread Denis Pithon
Used is_multicast_ether_addr() to perform the checking. Signed-off-by: Denis Pithon denis.pit...@gmail.com --- drivers/staging/wlan-ng/p80211netdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/wlan-ng/p80211netdev.c b/drivers/staging/wlan-ng

[PATCH 3/4] staging/wlan-ng: code refactoring

2014-05-12 Thread Denis Pithon
Extract new static function from p80211netdev_rx_bh() to fix coding style issue (too many leading tabs). Signed-off-by: Denis Pithon denis.pit...@gmail.com --- drivers/staging/wlan-ng/p80211netdev.c | 74 -- 1 file changed, 43 insertions(+), 31 deletions(-) diff

[PATCH 2/4] staging/wlan-ng: remove function declaration

2014-05-12 Thread Denis Pithon
Removed useless function prototype: static function p80211netdev_rx_bh() is defined before being used. Signed-off-by: Denis Pithon denis.pit...@gmail.com --- drivers/staging/wlan-ng/p80211netdev.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/staging/wlan-ng/p80211netdev.c b

[PATCH 1/4] staging/wlan-ng: update function header comment

2014-05-12 Thread Denis Pithon
Header comment of p80211netdev_rx_bh() does not match function prototype. Fixed. Signed-off-by: Denis Pithon denis.pit...@gmail.com --- drivers/staging/wlan-ng/p80211netdev.c | 18 +- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/drivers/staging/wlan-ng

[PATCH] staging/lustre: fix sparse warning

2014-04-14 Thread Denis Pithon
Fix sparse complaint: Using plain integer as NULL pointer Signed-off-by: Denis Pithon denis.pit...@gmail.com --- drivers/staging/lustre/lustre/ptlrpc/sec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/lustre/lustre/ptlrpc/sec.c b/drivers/staging/lustre

[PATCHv3 1/3] staging/wlan-ng: improve readability of usb_prism_tbl[]

2014-04-01 Thread Denis Pithon
Minor changes to nicely line up device entries. Signed-off-by: Denis Pithon denis.pit...@gmail.com --- drivers/staging/wlan-ng/prism2usb.c | 118 ++-- 1 file changed, 47 insertions(+), 71 deletions(-) diff --git a/drivers/staging/wlan-ng/prism2usb.c b/drivers

[PATCHv3 3/3] staging/wlan-ng: fix small coding style issues

2014-04-01 Thread Denis Pithon
Delete some unneeded blank lines and add few ones to make checkpatch.pl happy. Signed-off-by: Denis Pithon denis.pit...@gmail.com --- drivers/staging/wlan-ng/prism2usb.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/staging/wlan-ng/prism2usb.c b/drivers

[PATCH] staging/wlan-ng fix small coding style issue

2014-03-31 Thread Denis Pithon
Signed-off-by: Denis Pithon denis.pit...@gmail.com --- drivers/staging/wlan-ng/prism2usb.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/staging/wlan-ng/prism2usb.c b/drivers/staging/wlan-ng/prism2usb.c index 4739c14..ccb2c2e 100644 --- a/drivers/staging/wlan-ng/prism2usb.c +++ b

[PATCH v2] staging/wlan-ng fix small coding style issues

2014-03-31 Thread Denis Pithon
* improve readability of usb_prism_tbl[] * remove obsolete comments for prism2sta_probe_usb() and prism2sta_disconnect_usb() * delete some unneeded blank lines and add few ones to make checkpatch.pl happy. Signed-off-by: Denis Pithon denis.pit...@gmail.com --- drivers/staging/wlan-ng