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:
parent
1126bc2eb4
commit
c2ed545cee
|
@ -194,7 +194,7 @@ int gru_dump_chiplet_request(unsigned long arg)
|
||||||
return -EFAULT;
|
return -EFAULT;
|
||||||
|
|
||||||
/* Currently, only dump by gid is implemented */
|
/* Currently, only dump by gid is implemented */
|
||||||
if (req.gid >= gru_max_gids || req.gid < 0)
|
if (req.gid >= gru_max_gids)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
gru = GID_TO_GRU(req.gid);
|
gru = GID_TO_GRU(req.gid);
|
||||||
|
|
Loading…
Reference in New Issue