29/06/2017 20:21, Jan Blunck:
> +static int
> +bus_find_device(const struct rte_bus *bus, const void *_dev)
> +{
> +     struct rte_device *dev;
> +
> +     dev = bus->find_device(NULL, cmp_rte_device, _dev);
> +     return !dev;
> +}

The preferred code style is to make explicit the NULL comparisons:
        return dev == NULL;

Reply via email to