X-Git-Url: http://rtime.felk.cvut.cz/gitweb/lincan.git/blobdiff_plain/4dc78b4651f006bf0404c8ec7db85651bcee7c2e..04ac67cc3cac14cd601daacd0592121ec0b84012:/lincan/src/ioctl_remote.c diff --git a/lincan/src/ioctl_remote.c b/lincan/src/ioctl_remote.c index cabc2fc..5ba89f8 100644 --- a/lincan/src/ioctl_remote.c +++ b/lincan/src/ioctl_remote.c @@ -47,7 +47,7 @@ int can_ioctl_remote_read(struct canuser_t *canuser, struct canmsg_t *rtr_msg, struct msgobj_t *obj; struct canchip_t *chip; /*struct canque_ends_t *qends;*/ - + DEBUGMSG("Remote transmission request\n"); /*qends = canuser->qends;*/ @@ -69,7 +69,7 @@ int can_ioctl_remote_read(struct canuser_t *canuser, struct canmsg_t *rtr_msg, if (hardware_p->rtr_queue == NULL) { //No remote messages pending new_rtr_entry=(struct rtr_id *)kmalloc(sizeof(struct rtr_id),GFP_ATOMIC); if (new_rtr_entry == NULL) { - can_spin_unlock_irqrestore(&hardware_p->rtr_lock, + can_spin_unlock_irqrestore(&hardware_p->rtr_lock, flags); return -ENOMEM; } @@ -96,7 +96,7 @@ int can_ioctl_remote_read(struct canuser_t *canuser, struct canmsg_t *rtr_msg, can_spin_lock_irqsave(&hardware_p->rtr_lock, flags); if (hardware_p->rtr_queue == new_rtr_entry) { - if (new_rtr_entry->next != NULL) + if (new_rtr_entry->next != NULL) hardware_p->rtr_queue=new_rtr_entry->next; else hardware_p->rtr_queue=NULL;