git: net: Remove unnecessary sosetport() in various pru_attachs

Sepherosa Ziehau sephe at crater.dragonflybsd.org
Mon Jun 16 06:10:42 PDT 2014


commit 6df6b333edeeb8c8793af3fe5cbbbc680efc71f6
Author: Sepherosa Ziehau <sephe at dragonflybsd.org>
Date:   Mon Jun 16 21:06:16 2014 +0800

    net: Remove unnecessary sosetport() in various pru_attachs
    
    The so_port is set before the pru_attach is called; there is no need
    to do it again.

Summary of changes:
 sys/netinet/ip_divert.c    | 1 -
 sys/netinet/udp_usrreq.c   | 5 -----
 sys/netinet6/udp6_usrreq.c | 1 -
 3 files changed, 7 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/6df6b333edeeb8c8793af3fe5cbbbc680efc71f6


-- 
DragonFly BSD source repository



More information about the Commits mailing list