From: Cesar Eduardo Barros Date: Tue, 22 Mar 2011 23:33:18 +0000 (-0700) Subject: sys_swapon: simplify error return from swap_info allocation X-Git-Tag: v2.6.39-rc1~309 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2542e5134d2c19a9e6a4e641ef78cac6bccebd9b;p=pandora-kernel.git sys_swapon: simplify error return from swap_info allocation At this point in sys_swapon, there is nothing to free. Return directly instead of jumping to the cleanup block at the end of the function. Signed-off-by: Cesar Eduardo Barros Tested-by: Eric B Munson Acked-by: Eric B Munson Reviewed-by: Pekka Enberg Reviewed-by: KAMEZAWA Hiroyuki Cc: Hugh Dickins Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed