I agree that this is great to see a real example of this

On Fri, 15 May 2015 14:08:52 +0800
Jijiang Liu <jijiang.liu at intel.com> wrote:

> +static unsigned
> +check_ports_num(unsigned nb_ports)
> +{
> +     unsigned valid_nb_ports = nb_ports;
> +     unsigned portid;
> +
> +     if (nb_ports > nb_ports) {
> +             RTE_LOG(INFO, VHOST_PORT, "\nSpecified port number(%u) exceeds 
> total system port number(%u)\n",
> +                     nb_ports, nb_ports);
> +             nb_ports = nb_ports;

This looks repetative, and wrong, is it something to shut up a compiler warning?
or something that happened as result of global replace?

Reply via email to