devlink: Remove redundant free on error path
authorArkadi Sharshevsky <arkadis@mellanox.com>
Sun, 18 Mar 2018 15:37:22 +0000 (17:37 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 31 Mar 2018 16:10:39 +0000 (18:10 +0200)
commitb51eb57dac9cbd09e1ad3b1aed68ea11bcb83743
treec016afa9b9a40eeef09e39b1b446f165376f4e84
parent67a1dc5675670f17a77a0ac65f688d4b5adeeefa
devlink: Remove redundant free on error path

[ Upstream commit 7fe4d6dcbcb43fe0282d4213fc52be178bb30e91 ]

The current code performs unneeded free. Remove the redundant skb freeing
during the error path.

Fixes: 1555d204e743 ("devlink: Support for pipeline debug (dpipe)")
Signed-off-by: Arkadi Sharshevsky <arkadis@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/core/devlink.c