From: Markus Elfring Date: Mon, 2 Feb 2015 10:00:24 +0000 (+0100) Subject: netlabel: Less function calls in netlbl_mgmt_add_common() after error detection X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~134^2~78^2 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4de46d5ebc000ea110bcb76a7478c1ac37724221;p=pandora-kernel.git netlabel: Less function calls in netlbl_mgmt_add_common() after error detection The functions "cipso_v4_doi_putdef" and "kfree" could be called in some cases by the netlbl_mgmt_add_common() function during error handling even if the passed variables contained still a null pointer. * This implementation detail could be improved by adjustments for jump labels. * Let us return immediately after the first failed function call according to the current Linux coding style convention. * Let us delete also an unnecessary check for the variable "entry" there. Signed-off-by: Markus Elfring Acked-by: Paul Moore Signed-off-by: David S. Miller --- Reading git-diff-tree failed