]> rtime.felk.cvut.cz Git - lincan.git/blobdiff - lincan/src/close.c
Merge branch 'master' into can-usb1
[lincan.git] / lincan / src / close.c
index 157acfaff99033f510929720a14fdfc37e1f4204..a4dfe120583acb74763dee2d4a3fcb679513b830 100644 (file)
@@ -49,7 +49,7 @@ int can_close(struct inode *inode, struct file *file)
        struct canque_ends_t *qends;
        struct msgobj_t *obj;
        can_spin_irqflags_t iflags;
-       
+
        if(!canuser || (canuser->magic != CAN_USER_MAGIC)){
                CANMSG("can_close: bad canuser magic\n");
                return -ENODEV;
@@ -58,10 +58,10 @@ int can_close(struct inode *inode, struct file *file)
                CANMSG("There is no hardware support for the device file with minor nr.: %d\n",MINOR_NR);
                return -ENODEV;
        }
-       
+
        obj = canuser->msgobj;
        qends = canuser->qends;
-       
+
     #ifdef CAN_ENABLE_KERN_FASYNC
 
        can_fasync(-1, file, 0);
@@ -81,7 +81,7 @@ int can_close(struct inode *inode, struct file *file)
                can_msgobj_clear_fl(obj,OPENED);
        };
        can_spin_unlock_irqrestore(&canuser_manipulation_lock, iflags);
-       
+
     #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,5,50))
        MOD_DEC_USE_COUNT;
     #endif