Linas Vepstas wrote:
>> Cleanup the flow of control for rpaphp_add_slot(), so as to
> make it easier to read. The ext patch will fix a bug in this
> same code.
This:
> + if (!dn || strcmp(dn->name, "pci"))
> + return 0;
is not equivalent to the code it's replacing:
> - if (dn->name != 0 && strcmp(dn->name, "pci") == 0) {
With your version we'll oops if dn->name is NULL.