1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00

cleanup: use NULL for pointer reset

This commit is contained in:
Zdenek Kabelac 2014-03-24 09:18:53 +01:00
parent b714c7ebc6
commit c7b2c08a6b

View File

@ -372,14 +372,13 @@ int daemon_talk(struct dm_event_fifos *fifos,
if (!_daemon_write(fifos, msg)) {
stack;
dm_free(msg->data);
msg->data = 0;
msg->data = NULL;
return -EIO;
}
do {
dm_free(msg->data);
msg->data = 0;
msg->data = NULL;
if (!_daemon_read(fifos, msg)) {
stack;