[STYLE] delete comments from driver
authorKudrjavtsev Nickita <n.kudryavcev@samsung.com>
Tue, 26 Mar 2013 14:22:59 +0000 (18:22 +0400)
committerKudrjavtsev Nickita <n.kudryavcev@samsung.com>
Tue, 26 Mar 2013 14:22:59 +0000 (18:22 +0400)
driver/device_driver.c
driver/error_storage.c
driver/error_storage.h
driver/storage.h

index eaca23d..c7d04b1 100644 (file)
@@ -170,9 +170,8 @@ static int device_open(struct inode *inode, struct file *file)
 static int device_release(struct inode *inode, struct file *file)
 {
        gl_nDeviceOpened--;
-       EPRINTF("++ pre module_put");
        module_put(THIS_MODULE);
-       EPRINTF("++ aft module_put");
+
        return 0;
 }
 
@@ -411,21 +410,11 @@ static long device_ioctl (struct file *file UNUSED, unsigned int cmd, unsigned l
                }
                DPRINTF("Bundle has been copied successfully");
 
-//             last_error_buffer_initialize();
-
-//             printk(" --++@@ bef lb\n");
                if (link_bundle() == -1 || has_last_error() == -1) {
                        EPRINTF("Cannot link profile bundle!");
                        result = -1;
                        break;
                }
-//             printk(" --++@@ bef has_last_error\n");
-//             if (has_last_error() == -1) {
-//                     printk(" --++@@ in if\n");
-//                     DPRINTF("last_error_buffer != NULL");
-//                     result = -1;
-//             }
-//             printk(" --++@@ aft has_last_error\n");
 
                break;
        }
index 7e3dcaf..ee9dfce 100644 (file)
@@ -15,11 +15,6 @@ struct errno_struct
 
 static struct errno_struct *last_error = NULL;
 
-void last_error_buffer_initialize(void)
-{
-       last_error = NULL;
-}
-
 static int create_errno_buffer(void)
 {
         struct errno_struct *error = NULL;
index 4ba8c29..d32b4f1 100644 (file)
@@ -4,4 +4,3 @@
 int get_last_error(void* u_addr);
 int has_last_error(void);
 int update_errno_buffer(const char *buffer);
-void last_error_buffer_initialize(void);
index 4a7a45f..dfff677 100644 (file)
 #include "event_tmpl.h"
 #include "error_storage.h"
 
-//extern int update_errno_buffer(const char *buffer);
-//extern int get_last_error(void* u_addr);
-//extern int has_last_error(void);
-//extern void last_error_buffer_initialize(void);
-///////////////////////////////////////////////////////////////////////////////////////////////////
-
 extern int EnableContinuousRetrieval(void);
 extern int DisableContinuousRetrieval(void);