Remove unused variable sc_tx_bufsz.
The variable is initialized but not used. Reviewed by: yongari
This commit is contained in:
parent
13b01d1d47
commit
85edd2e8f9
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=251679
@ -833,19 +833,15 @@ axe_attach_post(struct usb_ether *ue)
|
|||||||
/* Initialize controller and get station address. */
|
/* Initialize controller and get station address. */
|
||||||
if (sc->sc_flags & AXE_FLAG_178) {
|
if (sc->sc_flags & AXE_FLAG_178) {
|
||||||
axe_ax88178_init(sc);
|
axe_ax88178_init(sc);
|
||||||
sc->sc_tx_bufsz = 16 * 1024;
|
|
||||||
axe_cmd(sc, AXE_178_CMD_READ_NODEID, 0, 0, ue->ue_eaddr);
|
axe_cmd(sc, AXE_178_CMD_READ_NODEID, 0, 0, ue->ue_eaddr);
|
||||||
} else if (sc->sc_flags & AXE_FLAG_772) {
|
} else if (sc->sc_flags & AXE_FLAG_772) {
|
||||||
axe_ax88772_init(sc);
|
axe_ax88772_init(sc);
|
||||||
sc->sc_tx_bufsz = 8 * 1024;
|
|
||||||
axe_cmd(sc, AXE_178_CMD_READ_NODEID, 0, 0, ue->ue_eaddr);
|
axe_cmd(sc, AXE_178_CMD_READ_NODEID, 0, 0, ue->ue_eaddr);
|
||||||
} else if (sc->sc_flags & AXE_FLAG_772A) {
|
} else if (sc->sc_flags & AXE_FLAG_772A) {
|
||||||
axe_ax88772a_init(sc);
|
axe_ax88772a_init(sc);
|
||||||
sc->sc_tx_bufsz = 8 * 1024;
|
|
||||||
axe_cmd(sc, AXE_178_CMD_READ_NODEID, 0, 0, ue->ue_eaddr);
|
axe_cmd(sc, AXE_178_CMD_READ_NODEID, 0, 0, ue->ue_eaddr);
|
||||||
} else if (sc->sc_flags & AXE_FLAG_772B) {
|
} else if (sc->sc_flags & AXE_FLAG_772B) {
|
||||||
axe_ax88772b_init(sc);
|
axe_ax88772b_init(sc);
|
||||||
sc->sc_tx_bufsz = 8 * 1024;
|
|
||||||
} else
|
} else
|
||||||
axe_cmd(sc, AXE_172_CMD_READ_NODEID, 0, 0, ue->ue_eaddr);
|
axe_cmd(sc, AXE_172_CMD_READ_NODEID, 0, 0, ue->ue_eaddr);
|
||||||
|
|
||||||
|
@ -349,7 +349,6 @@ struct axe_softc {
|
|||||||
uint8_t sc_phyaddrs[2];
|
uint8_t sc_phyaddrs[2];
|
||||||
uint16_t sc_pwrcfg;
|
uint16_t sc_pwrcfg;
|
||||||
uint16_t sc_lenmask;
|
uint16_t sc_lenmask;
|
||||||
int sc_tx_bufsz;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#define AXE_IS_178_FAMILY(sc) \
|
#define AXE_IS_178_FAMILY(sc) \
|
||||||
|
Loading…
Reference in New Issue
Block a user