浏览代码

oprofile: simplify add_sample() in cpu_buffer.c

Signed-off-by: Robert Richter <robert.richter@amd.com>
Robert Richter 16 年之前
父节点
当前提交
3967e93e06
共有 1 个文件被更改,包括 1 次插入5 次删除
  1. 1 5
      drivers/oprofile/cpu_buffer.c

+ 1 - 5
drivers/oprofile/cpu_buffer.c

@@ -203,11 +203,7 @@ add_sample(struct oprofile_cpu_buffer *cpu_buf,
 	entry.sample->eip = pc;
 	entry.sample->event = event;
 
-	ret = op_cpu_buffer_write_commit(&entry);
-	if (ret)
-		return ret;
-
-	return 0;
+	return op_cpu_buffer_write_commit(&entry);
 }
 
 static inline int