suser is Giant safe, so optimize a pointless case.

This commit is contained in:
Poul-Henning Kamp 2002-04-19 09:20:13 +00:00
parent 3c8451c966
commit 3bdd2d061a

View File

@ -909,10 +909,10 @@ adjtime(struct thread *td, struct adjtime_args *uap)
struct timeval atv;
int error;
mtx_lock(&Giant);
if ((error = suser(td)))
goto done2;
return (error);
mtx_lock(&Giant);
if (uap->olddelta) {
atv.tv_sec = time_adjtime / 1000000;
atv.tv_usec = time_adjtime % 1000000;