mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 21:09:28 +00:00
Don't test if a u_int is < 0. The remaining test is sufficient and the
extra one caused a warning.
This commit is contained in:
parent
8a3a52aaa1
commit
406d45e059
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=2357
@ -35,7 +35,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)trap.c 7.4 (Berkeley) 5/13/91
|
||||
* $Id: trap.c,v 1.30 1994/08/24 11:52:21 sos Exp $
|
||||
* $Id: trap.c,v 1.31 1994/08/27 16:14:13 davidg Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -630,7 +630,7 @@ syscall(frame)
|
||||
if (p->p_sysent->sv_mask)
|
||||
code = code & p->p_sysent->sv_mask;
|
||||
|
||||
if (code < 0 || code >= p->p_sysent->sv_size)
|
||||
if (code >= p->p_sysent->sv_size)
|
||||
callp = &p->p_sysent->sv_table[0];
|
||||
else
|
||||
callp = &p->p_sysent->sv_table[code];
|
||||
|
@ -35,7 +35,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)trap.c 7.4 (Berkeley) 5/13/91
|
||||
* $Id: trap.c,v 1.30 1994/08/24 11:52:21 sos Exp $
|
||||
* $Id: trap.c,v 1.31 1994/08/27 16:14:13 davidg Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -630,7 +630,7 @@ syscall(frame)
|
||||
if (p->p_sysent->sv_mask)
|
||||
code = code & p->p_sysent->sv_mask;
|
||||
|
||||
if (code < 0 || code >= p->p_sysent->sv_size)
|
||||
if (code >= p->p_sysent->sv_size)
|
||||
callp = &p->p_sysent->sv_table[0];
|
||||
else
|
||||
callp = &p->p_sysent->sv_table[code];
|
||||
|
@ -35,7 +35,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)trap.c 7.4 (Berkeley) 5/13/91
|
||||
* $Id: trap.c,v 1.30 1994/08/24 11:52:21 sos Exp $
|
||||
* $Id: trap.c,v 1.31 1994/08/27 16:14:13 davidg Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -630,7 +630,7 @@ syscall(frame)
|
||||
if (p->p_sysent->sv_mask)
|
||||
code = code & p->p_sysent->sv_mask;
|
||||
|
||||
if (code < 0 || code >= p->p_sysent->sv_size)
|
||||
if (code >= p->p_sysent->sv_size)
|
||||
callp = &p->p_sysent->sv_table[0];
|
||||
else
|
||||
callp = &p->p_sysent->sv_table[code];
|
||||
|
Loading…
Reference in New Issue
Block a user