2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2025-01-19 19:14:01 +08:00
linux-next/drivers/staging/rts5208
Bhaktipriya Shridhar b242d05fa3 staging: rts5208: Remove NULL test before vfree
vfree frees the virtually continuous memory area starting at addr.
If addr is NULL, no operation is performed. So NULL test is not needed
before vfree.

This was done using Coccinelle:

@@
expression x;
@@
-if (x != NULL)
    vfree(x);

@@
expression x;
@@

-if (x != NULL) {
vfree(x);
x = NULL;
-}

Signed-off-by: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-03-11 22:09:09 -08:00
..
general.c
general.h
Kconfig
Makefile
ms.c staging: rts5208: Remove NULL test before vfree 2016-03-11 22:09:09 -08:00
ms.h
rtsx_card.c
rtsx_card.h
rtsx_chip.c Staging: rts5208: Coding style warnings fix for block comments 2015-09-21 09:56:50 -07:00
rtsx_chip.h
rtsx_scsi.c staging: rts5208: simplify NULL tests 2016-03-11 22:09:09 -08:00
rtsx_scsi.h
rtsx_sys.h
rtsx_transport.c staging: rts5208: rtsx_transport.c: Drop void pointer cast 2016-03-11 22:09:09 -08:00
rtsx_transport.h
rtsx.c staging: rts5208: simplify NULL tests 2016-03-11 22:09:09 -08:00
rtsx.h staging: rts5208: Use common pci_get_bus_and_slot() instead of private one 2015-06-08 13:38:56 -07:00
sd.c staging: rts5208: simplify NULL tests 2016-03-11 22:09:09 -08:00
sd.h
spi.c staging: rts5208: simplify NULL tests 2016-03-11 22:09:09 -08:00
spi.h
TODO
trace.c
trace.h
xd.c staging: rts5208: Remove NULL test before vfree 2016-03-11 22:09:09 -08:00
xd.h