datapath: Merge do_destroy_dp into destroy_dp.
authorJesse Gross <jesse@nicira.com>
Wed, 29 Dec 2010 21:08:15 +0000 (13:08 -0800)
committerJesse Gross <jesse@nicira.com>
Thu, 30 Dec 2010 17:25:30 +0000 (09:25 -0800)
commit8f843b6f0fc45fdba373024aaa759785938858fc
treebf9aa8477b98d533b60e447d8df34f45ff6876e6
parent33b5304b913bb8018ea39f5ee5e00e60e65fe0da
datapath: Merge do_destroy_dp into destroy_dp.

Both do_destroy_dp() and destroy_dp() are small functions and
only have a single caller.  There's no good reason for them to
be separate so this merges them together.  It also makes things
more logically consistent and easier to read in the next commit,
which adds additional locking as everything is in one place.

Signed-off-by: Jesse Gross <jesse@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
datapath/datapath.c