]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
oprofile: simplify add_ibs_begin()
authorRobert Richter <robert.richter@amd.com>
Tue, 16 Dec 2008 10:01:18 +0000 (11:01 +0100)
committerRobert Richter <robert.richter@amd.com>
Wed, 7 Jan 2009 16:05:44 +0000 (17:05 +0100)
Signed-off-by: Robert Richter <robert.richter@amd.com>
drivers/oprofile/buffer_sync.c

index 22cdb5108360784ce6ef043ed097e9331ff92b32..7415d2e6b3a15953b4f446f9467b5b8599452b97 100644 (file)
@@ -333,7 +333,7 @@ static void add_ibs_begin(int cpu, int code, struct mm_struct *mm)
 
        sample = op_cpu_buffer_read_entry(cpu);
        if (!sample)
-               goto Error;
+               return;
        rip = sample->eip;
 
 #ifdef __LP64__
@@ -372,15 +372,12 @@ static void add_ibs_begin(int cpu, int code, struct mm_struct *mm)
        for (i = 0; i < count; i++) {
                sample = op_cpu_buffer_read_entry(cpu);
                if (!sample)
-                       goto Error;
+                       return;
                add_event_entry(sample->eip);
                add_event_entry(sample->event);
        }
 
        return;
-
-Error:
-       return;
 }
 
 #endif