1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-02-28 05:57:49 +03:00

Remove dead code

Remove code which is no longer used.
Code which has been using msg_malloced was removed in 2007.
This commit is contained in:
Zdenek Kabelac 2011-02-28 19:50:15 +00:00
parent 2163383728
commit bb9b9c6514

View File

@ -1392,7 +1392,6 @@ static void process_remote_command(struct clvm_header *msg, int msglen, int fd,
int replylen = 0;
int buflen = max_cluster_message - sizeof(struct clvm_header) - 1;
int status;
int msg_malloced = 0;
/* Get the node name as we /may/ need it later */
clops->name_from_csid(csid, nodename);
@ -1501,10 +1500,6 @@ static void process_remote_command(struct clvm_header *msg, int msglen, int fd,
}
}
/* Free buffer if it was malloced */
if (msg_malloced) {
free(msg);
}
free(replyargs);
}