MFC r293899

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.
This commit is contained in:
arybchik 2016-01-20 07:57:18 +00:00
parent 59fb3e0b1e
commit 4b9f4885a9

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;