]> rtime.felk.cvut.cz Git - lincan.git/blobdiff - lincan/src/read.c
LinCAN driver major structured comments and documentation update
[lincan.git] / lincan / src / read.c
index 64b24155723cd1ecdc92bc13c9933a9de15e750b..92fcb6894b3178a2da01637f81b2a8c803df97ec 100644 (file)
@@ -98,11 +98,7 @@ inline ssize_t can_rtr_read(struct chip_t *chip, struct msgobj_t *obj,
                new_rtr_entry=(struct rtr_id *)kmalloc(sizeof(struct rtr_id),GFP_ATOMIC);
                rtr_current->next=new_rtr_entry;
        }
-#if (LINUX_VERSION_CODE <= KERNEL_VERSION(2,3,0))
-       init_waitqueue(&new_rtr_entry->rtr_wq);
-#else
        init_waitqueue_head(&new_rtr_entry->rtr_wq);
-#endif
        new_rtr_entry->id = read_msg.id;
        new_rtr_entry->rtr_message = &read_msg;
        new_rtr_entry->next=NULL;