Function headers in drivers/pci

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I was going through the code in drivers/pci and noticed, that the function 
headers sometimes slightly differ.

e.g. in drivers/pci.c: 55

unsigned char __devinit
pci_max_busnr(void)
{
...
}

the return type of the function has its own line, while

e.g. in drivers/pci.c: 140

int pci_bus_find_capability(struct pci_bus *bus, unsigned int devfn, int cap)
{
...
}

the return type is on the same line as the rest of the function header.

Is there a specific reason for that, or is it just different "tastes" of 
coding style? ;)

Cheers, Tobias

-- 
Tobias Klauser <tklauser@xxxxxxxxxxx>

GPG-Key 0x3A445520 http://tklauser.politux.org/tklauser.asc
    Fingerprint = 7474 D486 E4FC 5113 561D  B1E3 72BC 0E7E 3A44 5520

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux