lkml.org 
[lkml]   [2008]   [Aug]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [patch] PCI: check the return value of device_create_bin_file() in pci_create_bus()
On Wed, Aug 06, 2008 at 07:19:01AM -0600, Matthew Wilcox wrote:
> On Wed, Aug 06, 2008 at 10:57:21AM +1000, Simon Horman wrote:
> > Check the return value of device_create_bin_file in pci_create_bus and
> > unwind if necessary. Don't propagate error to caller, as failure to create
> > these files shouldn't prevent PCI from being initialised.
>
> Much better ... one nit though:
>
> > static void pci_create_legacy_files(struct pci_bus *b)
> > {
> [...]
> > +
> > + return 0;
>
> I'm sure the compiler warns about that.

Amusingly, yes.

--
Horms -> looks for somewhere to hide


\
 
 \ /
  Last update: 2008-08-07 02:07    [W:0.066 / U:0.760 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site