[lkml]   [2002]   [Aug]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [patch] PCI Cleanup
> On Tue, 2002-08-13 at 01:08, Matthew Dobson wrote:
>> - if (!value)
>> - return -EINVAL;
>> -
>> - result = pci_conf1_read(0, dev->bus->number, PCI_SLOT(dev->devfn),
>> - PCI_FUNC(dev->devfn), where, 2, &data);
>> -
> This stil has the same problems as it did last time you posted it. The
> pointless NULL check and the increased complexity over duplicating about
> 60 lines of code and having pci_conf1 ops cleanly as we do in 2.4.
> The !value check is extremely bad because it turns a critical debuggable
> software error into a silent unnoticed mistake.
> Fixing the code instead of just resending it might improve the changes
> of it being merged no end.

Alan, please *look* at the patch. The NULL check is already
there, he's REMOVING about 60 lines of duplicated code,
reducing the complexity, and shifting the indirection up one
level to get rid of redundancy.

If you want to delete the NULL check as well, that's fine, but
totally a side issue. Ironically, the very snippet of code you
quoted is all prefaced with "-", no?


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:28    [W:0.142 / U:15.332 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site