diff options
Diffstat (limited to 'arch/um/drivers/chan_kern.c')
-rw-r--r-- | arch/um/drivers/chan_kern.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/um/drivers/chan_kern.c b/arch/um/drivers/chan_kern.c index 7218c754505b..e82764f75e7f 100644 --- a/arch/um/drivers/chan_kern.c +++ b/arch/um/drivers/chan_kern.c | |||
@@ -544,7 +544,7 @@ static struct chan *parse_chan(struct line *line, char *str, int device, | |||
544 | 544 | ||
545 | ops = NULL; | 545 | ops = NULL; |
546 | data = NULL; | 546 | data = NULL; |
547 | for(i = 0; i < sizeof(chan_table)/sizeof(chan_table[0]); i++){ | 547 | for(i = 0; i < ARRAY_SIZE(chan_table); i++){ |
548 | entry = &chan_table[i]; | 548 | entry = &chan_table[i]; |
549 | if(!strncmp(str, entry->key, strlen(entry->key))){ | 549 | if(!strncmp(str, entry->key, strlen(entry->key))){ |
550 | ops = entry->ops; | 550 | ops = entry->ops; |