Source-Changes archive

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

CVS commit: src/sys



Module Name:    src
Committed By:   thorpej
Date:           Tue Jan 26 14:49:41 UTC 2021

Modified Files:
        src/sys/arch/macppc/dev: awacs.c mediabay.c obio.c pmu.c wdc_obio.c
        src/sys/arch/macppc/macppc: interrupts.c machdep.c pic_heathrow.c
            pic_u3_ht.c
        src/sys/arch/macppc/pci: pci_machdep.c
        src/sys/dev/ofw: ofw_subr.c

Log Message:
There is not much point in of_compatible() returning -1 for "no match"
and >= 0 for "match".  Just make it return 0 for "no match" and >0 for
"match" so it can be treated like a boolean expression.

As such of_match_compatible() (a wrapper around of_compatible()) is now
obsolete, and will be removed once all call sites are converted to an
appropriate replacement.


To generate a diff of this commit:
cvs rdiff -u -r1.48 -r1.49 src/sys/arch/macppc/dev/awacs.c
cvs rdiff -u -r1.22 -r1.23 src/sys/arch/macppc/dev/mediabay.c
cvs rdiff -u -r1.47 -r1.48 src/sys/arch/macppc/dev/obio.c
cvs rdiff -u -r1.34 -r1.35 src/sys/arch/macppc/dev/pmu.c
cvs rdiff -u -r1.61 -r1.62 src/sys/arch/macppc/dev/wdc_obio.c
cvs rdiff -u -r1.7 -r1.8 src/sys/arch/macppc/macppc/interrupts.c
cvs rdiff -u -r1.171 -r1.172 src/sys/arch/macppc/macppc/machdep.c
cvs rdiff -u -r1.11 -r1.12 src/sys/arch/macppc/macppc/pic_heathrow.c
cvs rdiff -u -r1.9 -r1.10 src/sys/arch/macppc/macppc/pic_u3_ht.c
cvs rdiff -u -r1.42 -r1.43 src/sys/arch/macppc/pci/pci_machdep.c
cvs rdiff -u -r1.51 -r1.52 src/sys/dev/ofw/ofw_subr.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index