staging: axivdma: Remove useless casting from memory allocation

This patch will remove warning reported by coccicheck.
Warning:
./drivers/staging/video/axivdma/xvdma.c:280:22-38: WARNING: casting
value returned by memory allocation function to (struct xvdma_dev *) is
useless.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
staging: pmods: Remove useless casting from memory allocation

This patch will remove warning reported by coccicheck.
Warning:
./drivers/staging/rtl8188eu/os_dep/osdep_service.c:54:13-20: WARNING:
casting value returned by memory allocation function to (void * *) is
useless.
./drivers/staging/pmods/pmodoled-gpio.c:625:22-49: WARNING: casting
value returned by memory allocation function to (struct
gpio_pmodoled_device *) is useless.
./drivers/staging/pmods/pmodoled-gpio.c:681:23-45: WARNING: casting
value returned by memory allocation function to (struct platform_device
*) is useless.
./drivers/staging/pmods/pmodoled-gpio.c:668:24-53: WARNING: casting
value returned by memory allocation function to (struct
spi_gpio_platform_data *) is useless.
./drivers/staging/pmods/pmodoled-gpio.c:632:32-39: WARNING: casting
value returned by memory allocation function to (uint8_t *) is useless.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
staging: apf: Use kzalloc instead of kmalloc/memset

This patch will remove warning reported by coccicheck.
Warning:
./drivers/staging/apf/xilinx-dma-apf.c:782:11-18: WARNING: kzalloc
should be used for dmahead, instead of kmalloc/memset

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
usb: gadget: xilinx_udc: Use kzalloc instead of kmalloc/memset

This patch will remove warning reported by coccicheck.
Warning:
./drivers/usb/gadget/udc/xilinx_udc.c:1001:7-14: WARNING: kzalloc should
be used for req, instead of kmalloc/memset

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
net: ll_temac: Remove null pointer checking in front of kfree

kfree is checking null pointers by default.

This patch will remove warning reported by coccicheck.
Warning:
./drivers/net/ethernet/xilinx/ll_temac_main.c:228:2-7: WARNING: NULL
check before freeing functions like kfree, debugfs_remove,
debugfs_remove_recursive or usb_free_urb is not needed. Maybe consider
reorganizing relevant code to avoid passing NULL values.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
APF: Remove errors reported by coccicheck

coccicheck errors reported by Michal:
./drivers/staging/apf/xlnk.c:188:23-30: ERROR: reference preceded by free on line 187
./drivers/staging/apf/xlnk.c:202:24-31: ERROR: reference preceded by free on line 201

Moved xlnk_devpacks_delete() in front of kfree() as suggested by Michal to fix issue

Reported-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: S Mohan <s.mohan@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>