optimization of pack_event_info
authorAnastasia Lyupa <a.lyupa@samsung.com>
Thu, 28 Feb 2013 15:17:46 +0000 (19:17 +0400)
committerAnastasia Lyupa <a.lyupa@samsung.com>
Thu, 28 Feb 2013 15:20:42 +0000 (19:20 +0400)
remove memset() from pack_task_event_info()

driver/storage.c

index 5f770ef..393eb17 100644 (file)
@@ -1117,10 +1117,6 @@ void pack_task_event_info(struct task_struct *task, probe_id_t probe_id,
        struct cond *p_cond;
        struct event_tmpl *p_tmpl;
 
-       spin_lock_irqsave(&ec_spinlock, spinlock_flags);
-       memset(buf, 0, EVENT_MAX_SIZE);
-       spin_unlock_irqrestore(&ec_spinlock, spinlock_flags);
-
        do_gettimeofday (&tv);
 
        if (probe_id == KS_PROBE_ID) {