]> git.baikalelectronics.ru Git - kernel.git/commit
drivers/misc/sgi-gru/grukdump.c: cleanup gru_dump_context() a little
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 7 Apr 2014 22:39:03 +0000 (15:39 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 7 Apr 2014 23:36:09 +0000 (16:36 -0700)
commit568c232518ca6fa4bcd689b2f6049c84adcb03cc
tree865827d91d7bd91e6b588f84b4daae835dbddcd2
parent3103183ee2ccc465b2c499baac645f9f53509703
drivers/misc/sgi-gru/grukdump.c: cleanup gru_dump_context() a little

"ret" is zero here so we can remove the "!ret" part of the condition.
"uhdr" is alread a __user pointer so we can remove the cast.

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