]> git.baikalelectronics.ru Git - kernel.git/commit
drivers/misc/sgi-gru/grukdump.c: unlocking should be conditional in gru_dump_context()
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 10 Feb 2014 22:25:30 +0000 (14:25 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 11 Feb 2014 00:01:39 +0000 (16:01 -0800)
commit3b79fe697e4ea44a86341ef2a60739d6712010b8
tree93e0725ad190f9bb8b4aa55404fcea5480eaf821
parent5be6c96b0213ddc8bece5d066b36639b99a8bc26
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 <dan.carpenter@oracle.com>
Acked-by: Dimitri Sivanich <sivanich@sgi.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/misc/sgi-gru/grukdump.c