Author: Joe Perches <joe@perches.com> Adding casts of objects to the same type is unnecessary and confusing for a human reader. For example, this cast: int y; int *p = (int *)&y; I used the coccinelle script below to find and remove these unnecessary casts. I manually removed the conversions this script produces of casts with …
Jun 04 2012
wireless: Remove casts to same type
Author: Joe Perches <joe@perches.com> Adding casts of objects to the same type is unnecessary and confusing for a human reader. For example, this cast: int y; int *p = (int *)&y; I used the coccinelle script below to find and remove these unnecessary casts. I manually removed the conversions this script produces of casts with …
Jun 04 2012
ethernet: Remove casts to same type
Author: Joe Perches <joe@perches.com> Adding casts of objects to the same type is unnecessary and confusing for a human reader. For example, this cast: int y; int *p = (int *)&y; I used the coccinelle script below to find and remove these unnecessary casts. I manually removed the conversions this script produces of casts with …
Jun 03 2012
net: Remove casts to same type
Author: Joe Perches <joe@perches.com> Adding casts of objects to the same type is unnecessary and confusing for a human reader. For example, this cast: int y; int *p = (int *)&y; I used the coccinelle script below to find and remove these unnecessary casts. I manually removed the conversions this script produces of casts with …
May 08 2012
wireless: Convert compare_ether_addr to ether_addr_equal by hand
Author: Joe Perches <joe@perches.com> spatch/coccinelle isn’t perfect. It doesn’t understand __aligned(x) and doesn’t convert functions it can’t parse. Convert the remaining compare_ether_addr uses. Signed-off-by: Joe Perches Signed-off-by: David S. Miller — net/wireless/util.c | 6 +++— 1 file changed, 3 insertions(+), 3 deletions(-) diff –git a/net/wireless/util.c b/net/wireless/util.c index 3ba366f..1cd2558 100644 — a/net/wireless/util.c +++ b/net/wireless/util.c @@ …
May 08 2012
mac80211: Convert compare_ether_addr to ether_addr_equal by hand
Author: Joe Perches <joe@perches.com> spatch/coccinelle isn’t perfect. It doesn’t understand __aligned(x) and doesn’t convert functions it can’t parse. Convert the remaining compare_ether_addr uses. Signed-off-by: Joe Perches Signed-off-by: David S. Miller — net/mac80211/rx.c | 4 ++– net/mac80211/sta_info.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff –git a/net/mac80211/rx.c b/net/mac80211/rx.c index 26bfd6f..d722c40 100644 — …
Apr 26 2012
staging:iio: Streamline API function naming
Author: Lars-Peter Clausen <lars@metafoo.de> Currently we use two different naming schemes in the IIO API, iio_verb_object and iio_object_verb. E.g iio_device_register and iio_allocate_device. This patches renames instances of the later to the former. The patch also renames allocate to alloc as this seems to be the preferred form throughout the kernel. In particular the following renames …
Apr 25 2012
dmaengine: Use dma_sg_len(sg) instead of sg->length
Author: Lars-Peter Clausen <lars@metafoo.de> sg->length may or may not contain the length of the dma region to transfer, depending on the architecture – dma_sg_len(sg) always will though. For the architectures which use the drivers modified by this patch it probably is the case that sg->length contains the dma transfer length. But to be consistent and …
Apr 25 2012
dmaengine: Use sg_dma_address instead of sg_phys
Author: Lars-Peter Clausen <lars@metafoo.de> dmaengine drivers should always use sg_dma_address instead of sg_phys to get the addresses for the transfer from a sg element. To quote Russel King: sg_phys(sg) of course has nothing to do with DMA addresses. It’s the physical address _to the CPU_ of the memory associated with the scatterlist entry. That may, …
Apr 11 2012
staging: replace open-coded ARRAY_SIZEs
Author: Jim Cromie <jim.cromie@gmail.com> spatch http://coccinelle.lip6.fr/rules/array.cocci did these. Signed-off-by: Jim Cromie Signed-off-by: Greg Kroah-Hartman — drivers/staging/bcm/DDRInit.c | 26 +++++++++++++————- drivers/staging/media/as102/as102_usb_drv.c | 5 ++— drivers/staging/rtl8192e/rtl8192e/rtl_wx.c | 4 ++– drivers/staging/rtl8192e/rtllib_wx.c | 2 +- drivers/staging/rtl8192u/r8192U_wx.c | 4 ++– drivers/staging/rtl8712/rtl871x_ioctl_linux.c | 4 ++– drivers/staging/vt6655/wpa.c | 4 ++– drivers/staging/vt6656/wpa.c | 4 ++– 8 files changed, 26 insertions(+), 27 deletions(-) …