]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drivers/misc/sgi-gru/grufault.c: fix a sanity test in gru_set_context_option()
authorDimitri Sivanich <sivanich@sgi.com>
Thu, 27 Jun 2013 23:52:45 +0000 (09:52 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 28 Jun 2013 06:38:17 +0000 (16:38 +1000)
commit8e9ce3df75ddc4593e59eb5aa037e1ddee0ca73a
tree1f7945b0518883419c36bae45e6c20b7ca450e73
parentd6ced4fca77f1787c6a1861818455c6ba844b859
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>
drivers/misc/sgi-gru/grufault.c