From: Dan Carpenter Date: Mon, 10 Feb 2014 22:25:30 +0000 (-0800) Subject: drivers/misc/sgi-gru/grukdump.c: unlocking should be conditional in gru_dump_context() X-Git-Tag: v3.14-rc3~37^2~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=49d3d6c37a322117b1eeb410a49165bb3d0441f7;p=pandora-kernel.git drivers/misc/sgi-gru/grukdump.c: unlocking should be conditional in gru_dump_context() I was reviewing this and noticed that unlocking should be conditional on the error path. I've changed it to unlock and return directly since we only do it once and it seems unlikely to change in the near future. Signed-off-by: Dan Carpenter Acked-by: Dimitri Sivanich Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed