beautified a function
authorChristian Würdig <chriswue@ipd.info.uni-karlsruhe.de>
Wed, 13 Dec 2006 15:00:08 +0000 (15:00 +0000)
committerChristian Würdig <chriswue@ipd.info.uni-karlsruhe.de>
Wed, 13 Dec 2006 15:00:08 +0000 (15:00 +0000)
ir/be/benode.c

index 3afb9c1..cb5f459 100644 (file)
@@ -1086,13 +1086,7 @@ static void be_node_set_frame_offset(const void *self, ir_node *irn, int offset)
 
 static int be_node_get_sp_bias(const void *self, const ir_node *irn)
 {
-       int result = 0;
-
-       if(be_is_IncSP(irn)) {
-               result = be_get_IncSP_offset(irn);
-       }
-
-       return result;
+       return be_is_IncSP(irn) ? be_get_IncSP_offset(irn) : 0;
 }
 
 /*