[ovs-git] [openvswitch/ovs] bef2cd: netdev-dpdk: Fix returning the field of malloced s...

GitHub noreply at github.com
Fri Nov 16 22:20:41 UTC 2018


  Branch: refs/heads/dpdk-latest
  Home:   https://github.com/openvswitch/ovs
  Commit: bef2cdc8f4121b69d71b65196df0208fa77b364a
      https://github.com/openvswitch/ovs/commit/bef2cdc8f4121b69d71b65196df0208fa77b364a
  Author: Ilya Maximets <i.maximets at samsung.com>
  Date:   2018-11-16 (Fri, 16 Nov 2018)

  Changed paths:
    M lib/netdev-dpdk.c

  Log Message:
  -----------
  netdev-dpdk: Fix returning the field of malloced struct.

There is no sense returning the field because it never used.
Function returns the pointer just to allow the caller to free it.
Returning the pointer to the actual structure simplifies the code
allowing not to explain why we're freeing the container of.

Signed-off-by: Ilya Maximets <i.maximets at samsung.com>
Acked-by: Kevin Traynor <ktraynor at redhat.com>
Signed-off-by: Ian Stokes <ian.stokes at intel.com>



      **NOTE:** This service has been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

      Functionality will be removed from GitHub.com on January 31st, 2019.


More information about the git mailing list