"(u_short > 0xffff)" is never true, as gcc3 found out
This commit is contained in:
parent
3e74a824b6
commit
29eaa7cc18
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: smb_usr.c,v 1.7 2003/04/07 19:35:40 jdolecek Exp $ */
|
||||
/* $NetBSD: smb_usr.c,v 1.8 2003/07/03 10:59:12 drochner Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2000-2001 Boris Popov
|
||||
@ -35,7 +35,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: smb_usr.c,v 1.7 2003/04/07 19:35:40 jdolecek Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: smb_usr.c,v 1.8 2003/07/03 10:59:12 drochner Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/malloc.h>
|
||||
@ -298,8 +298,7 @@ smb_usr_t2request(struct smb_share *ssp, struct smbioc_t2rq *dp,
|
||||
struct mdchain *mdp;
|
||||
int error, len;
|
||||
|
||||
if (dp->ioc_tparamcnt > 0xffff || dp->ioc_tdatacnt > 0xffff ||
|
||||
dp->ioc_setupcnt > 3)
|
||||
if (dp->ioc_setupcnt > 3)
|
||||
return EINVAL;
|
||||
error = smb_t2_alloc(SSTOCP(ssp), dp->ioc_setup[0], scred, &t2p);
|
||||
if (error)
|
||||
|
Loading…
Reference in New Issue
Block a user