]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC r283870:
authordim <dim@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 8 Jun 2015 19:44:04 +0000 (19:44 +0000)
committerdim <dim@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 8 Jun 2015 19:44:04 +0000 (19:44 +0000)
commit0b345032ebb2a0db223f44f71e56bdefa9a1fc31
tree7fa094fc03d129f35e6658e68c35079e3e671f93
parentd3eacb401760af1ed9e0a60f9bd68e26a3f5a381
MFC r283870:

Remove unneeded NULL checks in amd64's 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 curproc->p_pid.

Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D2695

git-svn-id: svn://svn.freebsd.org/base/stable/9@284164 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/amd64/amd64/trap.c