engines: cleanup casts and move memset
authorVincent Fu <vincent.fu@samsung.com>
Sat, 15 Apr 2023 00:50:58 +0000 (00:50 +0000)
committerVincent Fu <vincent.fu@samsung.com>
Thu, 20 Apr 2023 13:43:30 +0000 (09:43 -0400)
commita7b7cb5bc0ebd935c99f06ad852ce4d1b2e88a1b
tree40be9fb4d4ff0d24f72a7fc4dc9600eb83a78fd1
parent699bc19bf5706791c64e20c0b378c5194430b9d6
engines: cleanup casts and move memset

Drop type casting of malloc's return value. Move a memset call closer to
its corresponding malloc call.

This is a prep patch for a Coccinelle script that converts
malloc+memset(,0,) to calloc.

Signed-off-by: Vincent Fu <vincent.fu@samsung.com>
engines/null.c
engines/solarisaio.c