drivers/misc/sgi-gru/grufault.c: fix a sanity test in gru_set_context_option()
authorDimitri Sivanich <sivanich@sgi.com>
Wed, 3 Jul 2013 22:05:07 +0000 (15:05 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 3 Jul 2013 23:07:42 +0000 (16:07 -0700)
commita7d0dabb3e863a1d4018235c1384b4318322116a
treed3393110354289598eb661f5b573339c3a06f171
parent48a9db462d99494583dad829969616ac90a8df4e
drivers/misc/sgi-gru/grufault.c: fix a sanity test in gru_set_context_option()

"req.val1 == -1" is valid but it doesn't make sense to check gru_base[-1].
 gru_base[] is a global array.

Signed-off-by: Dimitri Sivanich <sivanich@sgi.com>
Cc: Dan Carpenter <dan.carpenter@oracle.com>
Cc: Robin Holt <holt@sgi.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/misc/sgi-gru/grufault.c