chan_kern.c (b05005772f34497eb2b7415a651fe785cbe70e16) chan_kern.c (91b165c0594ab78c64f26d26e3174e6dfd60ed9d)
1/*
2 * Copyright (C) 2000, 2001, 2002 Jeff Dike (jdike@karaya.com)
3 * Licensed under the GPL
4 */
5
6#include <linux/stddef.h>
7#include <linux/kernel.h>
8#include <linux/list.h>

--- 530 unchanged lines hidden (view full) ---

539 struct chan_type *entry;
540 struct chan_ops *ops;
541 struct chan *chan;
542 void *data;
543 int i;
544
545 ops = NULL;
546 data = NULL;
1/*
2 * Copyright (C) 2000, 2001, 2002 Jeff Dike (jdike@karaya.com)
3 * Licensed under the GPL
4 */
5
6#include <linux/stddef.h>
7#include <linux/kernel.h>
8#include <linux/list.h>

--- 530 unchanged lines hidden (view full) ---

539 struct chan_type *entry;
540 struct chan_ops *ops;
541 struct chan *chan;
542 void *data;
543 int i;
544
545 ops = 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];
549 if(!strncmp(str, entry->key, strlen(entry->key))){
550 ops = entry->ops;
551 str += strlen(entry->key);
552 break;
553 }
554 }
555 if(ops == NULL){

--- 120 unchanged lines hidden ---
548 entry = &chan_table[i];
549 if(!strncmp(str, entry->key, strlen(entry->key))){
550 ops = entry->ops;
551 str += strlen(entry->key);
552 break;
553 }
554 }
555 if(ops == NULL){

--- 120 unchanged lines hidden ---