--- src/sys/netproto/smb/smb_rq.c 2006/09/05 00:55:49 1.10 +++ src/sys/netproto/smb/smb_rq.c 2008/01/06 16:55:53 1.11 @@ -68,8 +68,6 @@ smb_rq_alloc(struct smb_connobj *layer, int error; MALLOC(rqp, struct smb_rq *, sizeof(*rqp), M_SMBRQ, M_WAITOK); - if (rqp == NULL) - return ENOMEM; error = smb_rq_init(rqp, layer, cmd, scred); rqp->sr_flags |= SMBR_ALLOCED; if (error) { @@ -366,8 +364,6 @@ smb_t2_alloc(struct smb_connobj *layer, int error; MALLOC(t2p, struct smb_t2rq *, sizeof(*t2p), M_SMBRQ, M_WAITOK); - if (t2p == NULL) - return ENOMEM; error = smb_t2_init(t2p, layer, setup, scred); t2p->t2_flags |= SMBT2_ALLOCED; if (error) {