diff options
Diffstat (limited to 'drivers/misc/sgi-gru/gruprocfs.c')
-rw-r--r-- | drivers/misc/sgi-gru/gruprocfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/misc/sgi-gru/gruprocfs.c b/drivers/misc/sgi-gru/gruprocfs.c index 8724551aa55e..ee74821b171c 100644 --- a/drivers/misc/sgi-gru/gruprocfs.c +++ b/drivers/misc/sgi-gru/gruprocfs.c | |||
@@ -226,7 +226,7 @@ static void seq_stop(struct seq_file *file, void *data) | |||
226 | 226 | ||
227 | static void *seq_start(struct seq_file *file, loff_t *gid) | 227 | static void *seq_start(struct seq_file *file, loff_t *gid) |
228 | { | 228 | { |
229 | if (*gid < GRU_MAX_GRUS) | 229 | if (*gid < gru_max_gids) |
230 | return gid; | 230 | return gid; |
231 | return NULL; | 231 | return NULL; |
232 | } | 232 | } |
@@ -234,7 +234,7 @@ static void *seq_start(struct seq_file *file, loff_t *gid) | |||
234 | static void *seq_next(struct seq_file *file, void *data, loff_t *gid) | 234 | static void *seq_next(struct seq_file *file, void *data, loff_t *gid) |
235 | { | 235 | { |
236 | (*gid)++; | 236 | (*gid)++; |
237 | if (*gid < GRU_MAX_GRUS) | 237 | if (*gid < gru_max_gids) |
238 | return gid; | 238 | return gid; |
239 | return NULL; | 239 | return NULL; |
240 | } | 240 | } |