dpif: Use caller-provided dpif_class in dp_register_provider().
authorBen Pfaff <blp@nicira.com>
Thu, 18 Nov 2010 18:07:48 +0000 (10:07 -0800)
committerBen Pfaff <blp@nicira.com>
Thu, 18 Nov 2010 18:07:48 +0000 (10:07 -0800)
commitd2d8fbebb86eb682fc9507a884e80ff5e6086f03
tree2cd9e9b6c96b8bc11c54233215f7db755abf98ae
parent2081be2197e2df6a0612f262407dcca4b837480d
dpif: Use caller-provided dpif_class in dp_register_provider().

I don't see a reason here to copy the dpif_class instead of using the
pointer provided by the caller.  Using the caller's pointer allows the
caller to compare a dpif's 'class' member against the address of its
class structure, which seems like a reasonable thing to do.
lib/dpif.c