--- src/sys/vfs/smbfs/smbfs_smb.c 2008/01/05 14:02:41 1.10 +++ src/sys/vfs/smbfs/smbfs_smb.c 2008/01/06 16:55:53 1.11 @@ -1034,8 +1034,6 @@ smbfs_findopenLM2(struct smbfs_fctx *ctx const char *wildcard, int wclen, int attr, struct smb_cred *scred) { ctx->f_name = kmalloc(SMB_MAXFNAMELEN, M_SMBFSDATA, M_WAITOK); - if (ctx->f_name == NULL) - return ENOMEM; ctx->f_infolevel = SMB_DIALECT(SSTOVC(ctx->f_ssp)) < SMB_DIALECT_NTLM0_12 ? SMB_INFO_STANDARD : SMB_FIND_FILE_DIRECTORY_INFO; ctx->f_attrmask = attr; @@ -1174,8 +1172,6 @@ smbfs_findopen(struct smbnode *dnp, cons int error; ctx = kmalloc(sizeof(*ctx), M_SMBFSDATA, M_WAITOK | M_ZERO); - if (ctx == NULL) - return ENOMEM; ctx->f_ssp = dnp->n_mount->sm_share; ctx->f_dnp = dnp; ctx->f_flags = SMBFS_RDD_FINDFIRST;