Commit e141bec0 authored by Alessandro Rubini's avatar Alessandro Rubini

trivial: posix-socket: remove uneeded init

Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent f77d4f36
......@@ -94,7 +94,7 @@ static int posix_recv_msg(struct pp_instance *ppi, int fd, void *pkt, int len,
static int posix_net_recv(struct pp_instance *ppi, void *pkt, int len,
TimeInternal *t)
{
struct pp_channel *ch1 = NULL, *ch2 = NULL;
struct pp_channel *ch1, *ch2;
if (OPTS(ppi)->ethernet_mode) {
int fd = NP(ppi)->ch[PP_NP_GEN].fd;
......@@ -102,7 +102,7 @@ static int posix_net_recv(struct pp_instance *ppi, void *pkt, int len,
return posix_recv_msg(ppi, fd, pkt, len, t);
}
/* else: UDP */
/* else: UDP, we can return one frame only, so swap priority */
if (POSIX_ARCH(ppi)->rcv_switch) {
ch1 = &(NP(ppi)->ch[PP_NP_GEN]);
ch2 = &(NP(ppi)->ch[PP_NP_EVT]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment