Minor cleanups on cleanup()
authorTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Mon, 1 Jun 2015 13:21:29 +0000 (22:21 +0900)
committerTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Mon, 1 Jun 2015 13:21:29 +0000 (22:21 +0900)
commit02a3d83f79e3c5fb9490432cdc17a3be36ac32ad
treedd5edca52c46298e415fb91c36ede72da2cbabe6
parentec4dde5948a52c5bf8dcfe3b1c43912ddef2538e
Minor cleanups on cleanup()

Sync with the way other engines implement cleanup() that is regarded
as a better practice. td->io_ops->data should have null check before
dereference and its members can be freed without null check.
engines/null.c
engines/sync.c