X-Git-Url: http://rtime.felk.cvut.cz/gitweb/lincan.git/blobdiff_plain/4dc78b4651f006bf0404c8ec7db85651bcee7c2e..04ac67cc3cac14cd601daacd0592121ec0b84012:/lincan/src/ioctl_rtl.c diff --git a/lincan/src/ioctl_rtl.c b/lincan/src/ioctl_rtl.c index 18cbe1b..d811866 100644 --- a/lincan/src/ioctl_rtl.c +++ b/lincan/src/ioctl_rtl.c @@ -53,12 +53,12 @@ int can_ioctl_rtl_posix(struct rtl_file *fptr, unsigned int cmd, unsigned long a struct msgobj_t *obj; struct canchip_t *chip; struct canque_ends_t *qends; - + if(!canuser || (canuser->magic != CAN_USER_MAGIC)){ CANMSG("can_ioctl_: bad canuser magic\n"); return -ENODEV; } - + obj = canuser->msgobj; if (obj == NULL) { CANMSG("Could not assign buffer structure\n"); @@ -103,7 +103,7 @@ int can_ioctl_rtl_posix(struct rtl_file *fptr, unsigned int cmd, unsigned long a break; } - + case CANQUE_FILTER: { struct canfilt_t canfilt=*(struct canfilt_t *)arg; if(canuser->rx_edge0){ @@ -127,7 +127,7 @@ int can_ioctl_rtl_posix(struct rtl_file *fptr, unsigned int cmd, unsigned long a CANMSG("Not a valid ioctl command\n"); return -EINVAL; } - + } return 0;