Build fix for gcc2: Declare variables before checking for NULL

This commit is contained in:
Ryan Leavengood 2020-02-06 00:18:05 -05:00
parent 246caab548
commit 0a3f71b26f

View File

@ -779,12 +779,14 @@ error:
static void
oce_mq_free(struct oce_mq *mq)
{
POCE_SOFTC sc;
struct oce_mbx mbx;
struct mbx_destroy_common_mq *fwcmd;
if (mq == NULL)
return;
POCE_SOFTC sc = (POCE_SOFTC) mq->parent;
struct oce_mbx mbx;
struct mbx_destroy_common_mq *fwcmd;
sc = (POCE_SOFTC) mq->parent;
if (mq->ring != NULL) {
oce_destroy_ring_buffer(sc, mq->ring);