udp: Simplify getcred
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Wed, 3 Sep 2014 13:01:56 +0000 (21:01 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Wed, 3 Sep 2014 13:01:56 +0000 (21:01 +0800)
commit1c0ba690e824e1fc9e261a25fdec84dbea4e34d5
tree5f5002a4c4f3cc488b5c9097ba95e1f9a2b11b96
parent16d3b971c298bb8dbcfc5ed147f5567134f59854
udp: Simplify getcred

- No need to compare cpuid before calling lwkt_migratecpu(), which
  does necessary check itself.
- Streamline the code path a little bit.
sys/netinet/udp_usrreq.c