Message ID | 1452872719-14055-1-git-send-email-stuart.haslam@linaro.org |
---|---|
State | Superseded |
Headers | show |
On 15.01.16 17:45, Stuart Haslam wrote: > Remove an unwanted initialisation and fix a bad indentation which > crept in during a merge. forgot to add signed-off Reviewed-by: Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org> > --- > platform/linux-generic/pktio/loop.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/platform/linux-generic/pktio/loop.c b/platform/linux-generic/pktio/loop.c > index 47745ad..95644c4 100644 > --- a/platform/linux-generic/pktio/loop.c > +++ b/platform/linux-generic/pktio/loop.c > @@ -57,7 +57,6 @@ static int loopback_recv(pktio_entry_t *pktio_entry, odp_packet_t pkts[], > odp_packet_hdr_t *pkt_hdr; > odp_packet_t pkt; > > - nbr = 0; > qentry = queue_to_qentry(pktio_entry->s.pkt_loop.loopq); > nbr = queue_deq_multi(qentry, hdr_tbl, len); > > @@ -71,7 +70,7 @@ static int loopback_recv(pktio_entry_t *pktio_entry, odp_packet_t pkts[], > if (0 > _odp_packet_classifier(pktio_entry, pkt)) > pkts[j++] = pkt; > } > - nbr = j; > + nbr = j; > } else { > for (i = 0; i < nbr; ++i) { > pkts[i] = _odp_packet_from_buffer(odp_hdr_to_buf >
Stuart, please add signed-off here. Maxim. On 01/15/2016 19:22, Ivan Khoronzhuk wrote: > > > On 15.01.16 17:45, Stuart Haslam wrote: >> Remove an unwanted initialisation and fix a bad indentation which >> crept in during a merge. > forgot to add signed-off > > Reviewed-by: Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org> > >> --- >> platform/linux-generic/pktio/loop.c | 3 +-- >> 1 file changed, 1 insertion(+), 2 deletions(-) >> >> diff --git a/platform/linux-generic/pktio/loop.c >> b/platform/linux-generic/pktio/loop.c >> index 47745ad..95644c4 100644 >> --- a/platform/linux-generic/pktio/loop.c >> +++ b/platform/linux-generic/pktio/loop.c >> @@ -57,7 +57,6 @@ static int loopback_recv(pktio_entry_t >> *pktio_entry, odp_packet_t pkts[], >> odp_packet_hdr_t *pkt_hdr; >> odp_packet_t pkt; >> >> - nbr = 0; >> qentry = queue_to_qentry(pktio_entry->s.pkt_loop.loopq); >> nbr = queue_deq_multi(qentry, hdr_tbl, len); >> >> @@ -71,7 +70,7 @@ static int loopback_recv(pktio_entry_t >> *pktio_entry, odp_packet_t pkts[], >> if (0 > _odp_packet_classifier(pktio_entry, pkt)) >> pkts[j++] = pkt; >> } >> - nbr = j; >> + nbr = j; >> } else { >> for (i = 0; i < nbr; ++i) { >> pkts[i] = _odp_packet_from_buffer(odp_hdr_to_buf >> >
diff --git a/platform/linux-generic/pktio/loop.c b/platform/linux-generic/pktio/loop.c index 47745ad..95644c4 100644 --- a/platform/linux-generic/pktio/loop.c +++ b/platform/linux-generic/pktio/loop.c @@ -57,7 +57,6 @@ static int loopback_recv(pktio_entry_t *pktio_entry, odp_packet_t pkts[], odp_packet_hdr_t *pkt_hdr; odp_packet_t pkt; - nbr = 0; qentry = queue_to_qentry(pktio_entry->s.pkt_loop.loopq); nbr = queue_deq_multi(qentry, hdr_tbl, len); @@ -71,7 +70,7 @@ static int loopback_recv(pktio_entry_t *pktio_entry, odp_packet_t pkts[], if (0 > _odp_packet_classifier(pktio_entry, pkt)) pkts[j++] = pkt; } - nbr = j; + nbr = j; } else { for (i = 0; i < nbr; ++i) { pkts[i] = _odp_packet_from_buffer(odp_hdr_to_buf