Silence gcc -Wall -ansi -pedantic and fix minor bug in xl_txeof().
Pointed out by: Eivind
This commit is contained in:
parent
57da30bfc9
commit
6ab0ab275d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=41651
@ -29,7 +29,7 @@
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* $Id: if_xl.c,v 1.18 1998/12/05 02:21:42 wpaul Exp $
|
||||
* $Id: if_xl.c,v 1.62 1998/12/10 00:55:04 wpaul Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -147,7 +147,7 @@
|
||||
|
||||
#if !defined(lint)
|
||||
static const char rcsid[] =
|
||||
"$Id: if_xl.c,v 1.18 1998/12/05 02:21:42 wpaul Exp $";
|
||||
"$Id: if_xl.c,v 1.62 1998/12/10 00:55:04 wpaul Exp $";
|
||||
#endif
|
||||
|
||||
/*
|
||||
@ -224,14 +224,14 @@ static void xl_mii_send __P((struct xl_softc *, u_int32_t, int));
|
||||
static int xl_mii_readreg __P((struct xl_softc *, struct xl_mii_frame *));
|
||||
static int xl_mii_writereg __P((struct xl_softc *, struct xl_mii_frame *));
|
||||
static u_int16_t xl_phy_readreg __P((struct xl_softc *, int));
|
||||
static void xl_phy_writereg __P((struct xl_softc *, u_int16_t, u_int16_t));
|
||||
static void xl_phy_writereg __P((struct xl_softc *, int, int));
|
||||
|
||||
static void xl_autoneg_xmit __P((struct xl_softc *));
|
||||
static void xl_autoneg_mii __P((struct xl_softc *, int, int));
|
||||
static void xl_setmode_mii __P((struct xl_softc *, int));
|
||||
static void xl_getmode_mii __P((struct xl_softc *));
|
||||
static void xl_setmode __P((struct xl_softc *, int));
|
||||
static u_int8_t xl_calchash __P((u_int8_t *));
|
||||
static u_int8_t xl_calchash __P((caddr_t));
|
||||
static void xl_setmulti __P((struct xl_softc *));
|
||||
static void xl_setmulti_hash __P((struct xl_softc *));
|
||||
static void xl_reset __P((struct xl_softc *));
|
||||
@ -502,8 +502,8 @@ static u_int16_t xl_phy_readreg(sc, reg)
|
||||
|
||||
static void xl_phy_writereg(sc, reg, data)
|
||||
struct xl_softc *sc;
|
||||
u_int16_t reg;
|
||||
u_int16_t data;
|
||||
int reg;
|
||||
int data;
|
||||
{
|
||||
struct xl_mii_frame frame;
|
||||
|
||||
@ -592,7 +592,7 @@ static int xl_read_eeprom(sc, dest, off, cnt, swap)
|
||||
* On older cards, the upper 2 bits will be ignored. Grrrr....
|
||||
*/
|
||||
static u_int8_t xl_calchash(addr)
|
||||
u_int8_t *addr;
|
||||
caddr_t addr;
|
||||
{
|
||||
u_int32_t crc, carry;
|
||||
int i, j;
|
||||
@ -1932,8 +1932,6 @@ static void xl_txeof(sc)
|
||||
|
||||
cur_tx->xl_next = sc->xl_cdata.xl_tx_free;
|
||||
sc->xl_cdata.xl_tx_free = cur_tx;
|
||||
if (!cur_tx->xl_ptr->xl_next);
|
||||
break;
|
||||
}
|
||||
|
||||
if (sc->xl_cdata.xl_tx_head == NULL) {
|
||||
|
Loading…
Reference in New Issue
Block a user