Mesa (master): i965/fs: Drop an unnecessary _safe on a list walk.

Eric Anholt anholt at kemper.freedesktop.org
Sat Dec 15 00:26:26 UTC 2012


Module: Mesa
Branch: master
Commit: 7171c45d3a6392b947d96c10362ce0459b741669
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=7171c45d3a6392b947d96c10362ce0459b741669

Author: Eric Anholt <eric at anholt.net>
Date:   Fri Nov 30 21:15:35 2012 -0800

i965/fs: Drop an unnecessary _safe on a list walk.

Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>

---

 src/mesa/drivers/dri/i965/brw_fs.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp
index 94d200e..ede2979 100644
--- a/src/mesa/drivers/dri/i965/brw_fs.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs.cpp
@@ -1837,7 +1837,7 @@ fs_visitor::register_coalesce_2()
       int reg_to = inst->dst.reg;
       int reg_to_offset = inst->dst.reg_offset;
 
-      foreach_list_safe(node, &this->instructions) {
+      foreach_list(node, &this->instructions) {
 	 fs_inst *scan_inst = (fs_inst *)node;
 
 	 if (scan_inst->dst.file == GRF &&




More information about the mesa-commit mailing list