Source-Changes-D archive

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

Re: CVS commit: src/sys/dev/pci



In article 
<090708000205.M0124267__27136.7730493241$1246978986$gmane$org%mirage.ceres.dti.ne.jp@localhost>,
Izumi Tsutsui  <tsutsui%ceres.dti.ne.jp@localhost> wrote:
>> > >Log Message:
>> > >pciioctl(), pci_devioctl():
>> > >simplify implementations of PCI_IOC_BDF_CFGREAD, PCI_IOC_BDF_CFGWRITE,
>> > >PCI_IOC_CFGREAD, PCI_IOC_CFGWRITE
>> > >No functional changes.
> :
>> I will try
>> 
>>      memset(&tag, 0, sizeof(tag));
>> 
>> in the default case and buildtest several kernel configs for different
>archs. When this succeeds, I will commit.
>
>I don't think it's a good idea to add a bogus statement for gcc
>to "simplify" implementation.
>
>It looks still better to move the PCI_IOC_BDF_CFGWRITE case and
>return ENOTTY for the default case into the first switch statement.

Indeed.

christos



Home | Main Index | Thread Index | Old Index