ef10_mcdi.c (300607) | ef10_mcdi.c (300841) |
---|---|
1/*- 2 * Copyright (c) 2012-2016 Solarflare Communications Inc. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are met: 7 * 8 * 1. Redistributions of source code must retain the above copyright notice, --- 15 unchanged lines hidden (view full) --- 24 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * 26 * The views and conclusions contained in the software and documentation are 27 * those of the authors and should not be interpreted as representing official 28 * policies, either expressed or implied, of the FreeBSD Project. 29 */ 30 31#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2012-2016 Solarflare Communications Inc. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are met: 7 * 8 * 1. Redistributions of source code must retain the above copyright notice, --- 15 unchanged lines hidden (view full) --- 24 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * 26 * The views and conclusions contained in the software and documentation are 27 * those of the authors and should not be interpreted as representing official 28 * policies, either expressed or implied, of the FreeBSD Project. 29 */ 30 31#include <sys/cdefs.h> |
32__FBSDID("$FreeBSD: head/sys/dev/sfxge/common/ef10_mcdi.c 300607 2016-05-24 12:16:57Z arybchik $"); | 32__FBSDID("$FreeBSD: head/sys/dev/sfxge/common/ef10_mcdi.c 300841 2016-05-27 11:45:42Z arybchik $"); |
33 34#include "efx.h" 35#include "efx_impl.h" 36 37 38#if EFSYS_OPT_HUNTINGTON || EFSYS_OPT_MEDFORD 39 40#if EFSYS_OPT_MCDI --- 167 unchanged lines hidden (view full) --- 208 * flags is broken - see comments in siena_mcdi_poll_reboot(). 209 * As the generic MCDI code is shared the EF10 reboot 210 * detection suffers similar problems. 211 * 212 * Do not report an error when the boot status changes until 213 * this can be handled by common code drivers (and reworked to 214 * support Siena too). 215 */ | 33 34#include "efx.h" 35#include "efx_impl.h" 36 37 38#if EFSYS_OPT_HUNTINGTON || EFSYS_OPT_MEDFORD 39 40#if EFSYS_OPT_MCDI --- 167 unchanged lines hidden (view full) --- 208 * flags is broken - see comments in siena_mcdi_poll_reboot(). 209 * As the generic MCDI code is shared the EF10 reboot 210 * detection suffers similar problems. 211 * 212 * Do not report an error when the boot status changes until 213 * this can be handled by common code drivers (and reworked to 214 * support Siena too). 215 */ |
216 _NOTE(CONSTANTCONDITION) |
|
216 if (B_FALSE) { 217 rc = EIO; 218 goto fail1; 219 } 220 } 221 222 return (0); 223 --- 80 unchanged lines hidden --- | 217 if (B_FALSE) { 218 rc = EIO; 219 goto fail1; 220 } 221 } 222 223 return (0); 224 --- 80 unchanged lines hidden --- |