Source-Changes archive

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

CVS commit: src/sys/dev/usb



Module Name:    src
Committed By:   riastradh
Date:           Tue Mar 25 20:38:27 UTC 2025

Modified Files:
        src/sys/dev/usb: umcpmio.c umcpmio_subr.c

Log Message:
umcpmio(4): Linearize error branch structure.

This dramatically reduces the unnecessary indentation of success
cases and puts error messages adjacent to the conditions they report.

Rewriting it this way reveals that two of the error branches in
umcpmio_dev_read are probably wrong -- should probably break out of
the loop, not continue it.  To be fixed in a separate commit.

No functional change intended.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/dev/usb/umcpmio.c \
    src/sys/dev/usb/umcpmio_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