X-Git-Url: http://rtime.felk.cvut.cz/gitweb/lincan.git/blobdiff_plain/f2fcdbb5f9333a58a08f56daaca8cad7e5a95699..3129fcd8094edcb910b708463fdf1a234f11fb55:/lincan/src/read.c diff --git a/lincan/src/read.c b/lincan/src/read.c index 64b2415..92fcb68 100644 --- a/lincan/src/read.c +++ b/lincan/src/read.c @@ -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;