]> 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>
Fri, 7 Jun 2013 00:08:40 +0000 (10:08 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 7 Jun 2013 05:42:42 +0000 (15:42 +1000)
commit65bbda33a06963759b13698ee8365ebbd6f664a2
treea2e58b91b5ca4ddffbf6b957d9e3c78fd57d824d
parentb11496783537d67d6e23bb733080c513dfa050ce
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