]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r284167:
authordim <dim@FreeBSD.org>
Sat, 20 Jun 2015 13:25:28 +0000 (13:25 +0000)
committerdim <dim@FreeBSD.org>
Sat, 20 Jun 2015 13:25:28 +0000 (13:25 +0000)
commitf96f7b3d8f68b5f257892ac5f18061670af64ed4
tree25e2505e05656cffa1adb588a1687478018afcf7
parent094ec02dc8b783e4e68794c847da90049af29806
MFC r284167:

Merge r283870 from amd64:

Remove unneeded NULL checks in trap_fatal().

Since td_name is an array member of struct thread, it can never be NULL,
so the check can be removed.  In addition, curproc can never be NULL,
so remove the if statement, and splice the two printfs() together.

While here, remove the u_long cast, and use the correct printf format
specifier for curproc->p_pid.

Requested by: jhb
sys/i386/i386/trap.c