From: Bruce Allan Date: Wed, 8 Feb 2012 02:54:42 +0000 (+0000) Subject: e1000e: cleanup: use goto for common work needed by multiple exit points X-Git-Tag: v3.4-rc1~177^2~305^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ffacd472c4c577c9d39a97a1f7ac36f59443723b;p=pandora-kernel.git e1000e: cleanup: use goto for common work needed by multiple exit points There are two exit points of e1000e_write_nvm_spi() which require the nvm->ops.release() function pointer called just before exiting. Consolidate the two duplicate pieces of common work with a goto. With this change, the value ret_val will need to be returned instead of 0. Signed-off-by: Bruce Allan Tested-by: Aaron Brown Signed-off-by: Jeff Kirsher --- Reading git-diff-tree failed