From: Kudrjavtsev Nickita Date: Tue, 26 Mar 2013 14:22:59 +0000 (+0400) Subject: [STYLE] delete comments from driver X-Git-Tag: accepted/tizen/mobile/20160407.001200~432^2~23 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d3de64cc6b0633aa6abff07db6139d3304f0dd21;p=platform%2Fkernel%2Fswap-modules.git [STYLE] delete comments from driver --- diff --git a/driver/device_driver.c b/driver/device_driver.c index eaca23d..c7d04b1 100644 --- a/driver/device_driver.c +++ b/driver/device_driver.c @@ -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; } diff --git a/driver/error_storage.c b/driver/error_storage.c index 7e3dcaf..ee9dfce 100644 --- a/driver/error_storage.c +++ b/driver/error_storage.c @@ -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; diff --git a/driver/error_storage.h b/driver/error_storage.h index 4ba8c29..d32b4f1 100644 --- a/driver/error_storage.h +++ b/driver/error_storage.h @@ -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); diff --git a/driver/storage.h b/driver/storage.h index 4a7a45f..dfff677 100644 --- a/driver/storage.h +++ b/driver/storage.h @@ -30,12 +30,6 @@ #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);