@@ -1075,7 +1075,6 @@ static void send_ext_msg_udp(struct netconsole_target *nt, const char *msg,
const char *header, *body;
int offset = 0;
int header_len, body_len;
- const char *msg_ready = msg;
const char *release;
int release_len = 0;
int userdata_len = 0;
@@ -1105,8 +1104,7 @@ static void send_ext_msg_udp(struct netconsole_target *nt, const char *msg,
MAX_PRINT_CHUNK - msg_len,
"%s", userdata);
- msg_ready = buf;
- netpoll_send_udp(&nt->np, msg_ready, msg_len);
+ netpoll_send_udp(&nt->np, buf, msg_len);
return;
}