drivers/misc/sgi-gru: remove always false condition

The member gid in struct gru_dump_chiplet_state_req is unsigned int. So
it can never be less than 0.

Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Acked-by: Dimitri Sivanich <sivanich@sgi.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Sudip Mukherjee 2015-09-03 20:20:49 +05:30 committed by Greg Kroah-Hartman
parent 1126bc2eb4
commit c2ed545cee
1 changed files with 1 additions and 1 deletions

View File

@ -194,7 +194,7 @@ int gru_dump_chiplet_request(unsigned long arg)
return -EFAULT;
/* Currently, only dump by gid is implemented */
if (req.gid >= gru_max_gids || req.gid < 0)
if (req.gid >= gru_max_gids)
return -EINVAL;
gru = GID_TO_GRU(req.gid);