2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-25 21:54:06 +08:00
linux-next/drivers/staging/wlan-ng
Julia Lawall 9ba8aa7a94 Staging: wlan-ng: p80211wext.c: use ARRAY_SIZE
ARRAY_SIZE is more concise to use when the size of an array is divided by
the size of its type or the size of its first element.

The semantic patch that makes this change is as follows:
(http://www.emn.fr/x-info/coccinelle/)

// <smpl>
@i@
@@

#include <linux/kernel.h>

@depends on i using "paren.iso"@
type T;
T[] E;
@@

- (sizeof(E)/sizeof(E[...]))
+ ARRAY_SIZE(E)

@depends on i using "paren.iso"@
type T;
T[] E;
@@

- (sizeof(E)/sizeof(T))
+ ARRAY_SIZE(E)
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-01-06 13:52:01 -08:00
..
hfa384x_usb.c Staging: wlan-ng: hfa384x_usbin_callback: check for hardware removed 2009-01-06 13:52:00 -08:00
hfa384x.h Staging: wlan-ng: Delete a large pile of now-unused code. 2009-01-06 13:51:57 -08:00
Kconfig Staging: wlan-ng: use WIRELESS_EXT, not CONFIG_WIRELESS_EXT 2009-01-06 13:51:56 -08:00
Makefile Staging: wlan-ng: Consolidate wlan-ng into a single module. 2009-01-06 13:51:57 -08:00
p80211conv.c Staging: wlan-ng: remove unused #include <version.h> 2009-01-06 13:52:01 -08:00
p80211conv.h Staging: wlan-ng: Use standard kernel integer (u32/s32/etc) types. 2009-01-06 13:51:56 -08:00
p80211hdr.h Staging: wlan-ng: Use standard kernel integer (u32/s32/etc) types. 2009-01-06 13:51:56 -08:00
p80211ioctl.h Staging: wlan-ng: Use standard kernel integer (u32/s32/etc) types. 2009-01-06 13:51:56 -08:00
p80211meta.h Staging: wlan-ng: Use standard kernel integer (u32/s32/etc) types. 2009-01-06 13:51:56 -08:00
p80211metadef.h Staging: wlan-ng: Purge all MIBs not used internally. 2009-01-06 13:51:58 -08:00
p80211metamib.h Staging: wlan-ng: Use standard kernel integer (u32/s32/etc) types. 2009-01-06 13:51:56 -08:00
p80211metamsg.h Staging: wlan-ng: Use standard kernel integer (u32/s32/etc) types. 2009-01-06 13:51:56 -08:00
p80211metastruct.h Staging: wlan-ng: Delete a large pile of now-unused code. 2009-01-06 13:51:57 -08:00
p80211mgmt.h Staging: wlan-ng: Use standard kernel integer (u32/s32/etc) types. 2009-01-06 13:51:56 -08:00
p80211msg.h Staging: wlan-ng: Use standard kernel integer (u32/s32/etc) types. 2009-01-06 13:51:56 -08:00
p80211netdev.c Staging: wlan-ng: p80211netdev.c fix netdev alloc to prevent oops on device start 2009-01-06 13:51:58 -08:00
p80211netdev.h Staging: wlan-ng: Purge all MIBs not used internally. 2009-01-06 13:51:58 -08:00
p80211req.c Staging: wlan-ng: remove unused #include <version.h> 2009-01-06 13:52:01 -08:00
p80211req.h Staging: wlan-ng: Use standard kernel integer (u32/s32/etc) types. 2009-01-06 13:51:56 -08:00
p80211types.h Staging: wlan-ng: Use standard kernel integer (u32/s32/etc) types. 2009-01-06 13:51:56 -08:00
p80211wep.c Staging: wlan-ng: Use standard kernel integer (u32/s32/etc) types. 2009-01-06 13:51:56 -08:00
p80211wext.c Staging: wlan-ng: p80211wext.c: use ARRAY_SIZE 2009-01-06 13:52:01 -08:00
prism2mgmt.c Staging: wlan-ng: remove unused #include <version.h> 2009-01-06 13:52:01 -08:00
prism2mgmt.h Staging: wlan-ng: Delete a large pile of now-unused code. 2009-01-06 13:51:57 -08:00
prism2mib.c Staging: wlan-ng: Purge all MIBs not used internally. 2009-01-06 13:51:58 -08:00
prism2sta.c Staging: wlan-ng: Consolidate wlan-ng into a single module. 2009-01-06 13:51:57 -08:00
prism2usb.c Staging: wlan-ng: prism2_usb.c always enable the card in probe_usb 2009-01-06 13:51:58 -08:00
README Staging: wlan-ng: Remove PCI/PLX/PCMCIA files. 2009-01-06 13:51:53 -08:00
wlan_compat.h Staging: wlan-ng: Delete a large pile of now-unused code. 2009-01-06 13:51:57 -08:00

TODO:
	- checkpatch.pl cleanups
	- sparse warnings
	- Lindent cleanups
	- move to use the in-kernel wireless stack

Please send all patches to Greg Kroah-Hartman <greg@kroah.com>