datpaath-windows: consolidate check for output buffer
authorNithin Raju <nithin@vmware.com>
Thu, 20 Nov 2014 17:06:34 +0000 (09:06 -0800)
committerGurucharan Shetty <gshetty@nicira.com>
Thu, 20 Nov 2014 17:32:10 +0000 (09:32 -0800)
commit741224c9a2de24d23fdf1352e34681a8026e71f1
tree27e1d7cce744a38ec6bed6f341abb581cd4cb3ca
parentb3123b203f9bed052cddf810ea874cde226e2595
datpaath-windows: consolidate check for output buffer

Earlier, output buffer was optional in a transaction command. Thus each
command handler, had to check if the output buffer had indeed been
specified by userspace or not.

Now that output buffer is mandatory in transaction command, let's
consolidate the check in one place, and also convert the previous check
to ASSERTs.

Signed-off-by: Nithin Raju <nithin@vmware.com>
Acked-by: Sorin Vinturis <svinturis@cloudbasesolutions.com>
Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
datapath-windows/ovsext/Datapath.c