Commit 6868a420 authored by Greg Kurz's avatar Greg Kurz
Browse files

9pfs: drop useless check in pdu_free()



Out of the three users of pdu_free(), none ever passes a NULL pointer to
this function.

Signed-off-by: default avatarGreg Kurz <groug@kaod.org>
parent 8440e22e
Loading
Loading
Loading
Loading
+8 −10
Original line number Diff line number Diff line
@@ -626,7 +626,6 @@ V9fsPDU *pdu_alloc(V9fsState *s)

void pdu_free(V9fsPDU *pdu)
{
    if (pdu) {
    V9fsState *s = pdu->s;
    /*
     * Cancelled pdu are added back to the freelist
@@ -637,7 +636,6 @@ void pdu_free(V9fsPDU *pdu)
        QLIST_INSERT_HEAD(&s->free_list, pdu, next);
    }
}
}

/*
 * We don't do error checking for pdu_marshal/unmarshal here