git: udp: Simplify getcred

Sepherosa Ziehau sephe at crater.dragonflybsd.org
Wed Sep 3 06:03:45 PDT 2014


commit 1c0ba690e824e1fc9e261a25fdec84dbea4e34d5
Author: Sepherosa Ziehau <sephe at dragonflybsd.org>
Date:   Wed Sep 3 21:01:56 2014 +0800

    udp: Simplify getcred
    
    - No need to compare cpuid before calling lwkt_migratecpu(), which
      does necessary check itself.
    - Streamline the code path a little bit.

Summary of changes:
 sys/netinet/udp_usrreq.c | 14 +++++---------
 1 file changed, 5 insertions(+), 9 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/1c0ba690e824e1fc9e261a25fdec84dbea4e34d5


-- 
DragonFly BSD source repository



More information about the Commits mailing list