Source-Changes archive

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

CVS commit: src/sys/dev/ic



Module Name:    src
Committed By:   dyoung
Date:           Sat Feb 23 02:26:53 UTC 2008

Modified Files:
        src/sys/dev/ic: dp8390.c

Log Message:
Convert a complicated if/else if/else chain to a switch statement
that is a bit more readable.

ENODEV and ENOTTY are appropriate error codes for indicating
unsupported ioctls, but EINVAL is definitely not!  If an operation
is not supported, return ENODEV instead of EINVAL.


To generate a diff of this commit:
cvs rdiff -r1.66 -r1.67 src/sys/dev/ic/dp8390.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