1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-31 12:13:10 +00:00

sfxge: cleanup: adjust efx_mcdi_get_port_modes() comment for clarity

Fix an explanatory comment which did not explain very well.

Submitted by:   Richard Houldsworth <rhouldsworth at solarflare.com>
Reviewed by:    gnn
Sponsored by:   Solarflare Communications, Inc.
MFC after:      2 days
Differential Revision: https://reviews.freebsd.org/D4916
This commit is contained in:
Andrew Rybchenko 2016-01-14 09:12:40 +00:00
parent 72cda83214
commit 410298b138
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=293899

View File

@ -112,7 +112,10 @@ efx_mcdi_get_port_modes(
goto fail1;
}
/* Accept pre-Medford size (8 bytes - no CurrentMode field) */
/*
* Require only Modes and DefaultMode fields.
* (CurrentMode field was added for Medford)
*/
if (req.emr_out_length_used <
MC_CMD_GET_PORT_MODES_OUT_CURRENT_MODE_OFST) {
rc = EMSGSIZE;