linux/drivers/net/wireless/rt2x00
Julia Lawall 855da5e07e drivers/net/wireless: Correct code taking the size of a pointer
sizeof(iv16) and sizeof(iv32) are the sizes of pointers.  Change them to
the size of the copied data.

Furthermore, iveiv_entry is a local structure that has just been
initialized and is not visible outside this function.  Thus, there would
seem to be no point to copy data into it.  The order of the arguments is
thus changed to copy the data into the parameters, which are provided as
pointers, suggesting in this case that they should be used to return values.

A simplified version of the semantic patch that finds the first problem is as
follows: (http://coccinelle.lip6.fr/)

// <smpl>
@@
expression *x;
expression f;
type T;
@@

*f(...,(T)x,...)
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Acked-by: Gertjan van Wingerde <gwingerde@gmail.com>
Acked-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2009-12-21 11:32:02 -05:00
..
Kconfig rt2800: add rt2800lib (part one) 2009-11-06 16:48:58 -05:00
Makefile rt2800: add rt2800lib (part one) 2009-11-06 16:48:58 -05:00
rt2x00.h rt2x00: Centralize setting of extra TX headroom requested by rt2x00. 2009-11-28 15:04:38 -05:00
rt2x00config.c rt2x00: Update copyright statements. 2009-11-11 17:09:17 -05:00
rt2x00crypto.c rt2x00: Update copyright statements. 2009-11-11 17:09:17 -05:00
rt2x00debug.c Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6 2009-11-18 22:19:03 -08:00
rt2x00debug.h rt2x00: Update copyright statements. 2009-11-11 17:09:17 -05:00
rt2x00dev.c rt2x00: Centralize setting of extra TX headroom requested by rt2x00. 2009-11-28 15:04:38 -05:00
rt2x00dump.h rt2x00: Update copyright statements. 2009-11-11 17:09:17 -05:00
rt2x00firmware.c rt2x00: Update copyright statements. 2009-11-11 17:09:17 -05:00
rt2x00ht.c rt2x00: Update copyright statements. 2009-11-11 17:09:17 -05:00
rt2x00leds.c rt2x00: Update copyright statements. 2009-11-11 17:09:17 -05:00
rt2x00leds.h rt2x00: Update copyright statements. 2009-11-11 17:09:17 -05:00
rt2x00lib.h mac80211: request TX status where needed 2009-11-19 11:08:56 -05:00
rt2x00link.c rt2x00: Update copyright statements. 2009-11-11 17:09:17 -05:00
rt2x00mac.c rt2x00: Remove unused variable frame_control from rt2x00mac_tx. 2009-11-28 15:04:34 -05:00
rt2x00pci.c rt2x00: Update copyright statements. 2009-11-11 17:09:17 -05:00
rt2x00pci.h rt2x00: Update copyright statements. 2009-11-11 17:09:17 -05:00
rt2x00queue.c rt2x00: Fix padding bug on L2PAD devices. 2009-12-04 13:30:39 -05:00
rt2x00queue.h mac80211: request TX status where needed 2009-11-19 11:08:56 -05:00
rt2x00reg.h rt2x00: Update copyright statements. 2009-11-11 17:09:17 -05:00
rt2x00soc.c rt2x00: Update copyright statements. 2009-11-11 17:09:17 -05:00
rt2x00soc.h rt2x00: Update copyright statements. 2009-11-11 17:09:17 -05:00
rt2x00usb.c rt2x00: Update copyright statements. 2009-11-11 17:09:17 -05:00
rt2x00usb.h rt2x00: Update copyright statements. 2009-11-11 17:09:17 -05:00
rt61pci.c rt2x00: Centralize setting of extra TX headroom requested by rt2x00. 2009-11-28 15:04:38 -05:00
rt61pci.h rt2x00: Update copyright statements. 2009-11-11 17:09:17 -05:00
rt73usb.c rt2x00: Centralize setting of extra TX headroom requested by rt2x00. 2009-11-28 15:04:38 -05:00
rt73usb.h rt2x00: Update copyright statements. 2009-11-11 17:09:17 -05:00
rt2400pci.c rt2x00: Centralize setting of extra TX headroom requested by rt2x00. 2009-11-28 15:04:38 -05:00
rt2400pci.h rt2x00: Update copyright statements. 2009-11-11 17:09:17 -05:00
rt2500pci.c rt2x00: Centralize setting of extra TX headroom requested by rt2x00. 2009-11-28 15:04:38 -05:00
rt2500pci.h rt2x00: Update copyright statements. 2009-11-11 17:09:17 -05:00
rt2500usb.c rt2x00: Centralize setting of extra TX headroom requested by rt2x00. 2009-11-28 15:04:38 -05:00
rt2500usb.h rt2x00: Update copyright statements. 2009-11-11 17:09:17 -05:00
rt2800.h rt2x00: Update copyright statements. 2009-11-11 17:09:17 -05:00
rt2800lib.c drivers/net/wireless: Correct code taking the size of a pointer 2009-12-21 11:32:02 -05:00
rt2800lib.h rt2x00: Fix BUG on rt2800usb when trying to read eFuse EEPROM. 2009-11-16 14:17:12 -05:00
rt2800pci.c rt2x00: Centralize setting of extra TX headroom requested by rt2x00. 2009-11-28 15:04:38 -05:00
rt2800pci.h rt2x00: Update copyright statements. 2009-11-11 17:09:17 -05:00
rt2800usb.c rt2x00: Centralize setting of extra TX headroom requested by rt2x00. 2009-11-28 15:04:38 -05:00
rt2800usb.h rt2x00: Update copyright statements. 2009-11-11 17:09:17 -05:00