From 193c0cf4972ae37af1f029dba7fd26763f28c2d4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Christian=20W=C3=BCrdig?= Date: Wed, 13 Dec 2006 15:00:08 +0000 Subject: [PATCH] beautified a function --- ir/be/benode.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/ir/be/benode.c b/ir/be/benode.c index 3afb9c14e..cb5f4590c 100644 --- a/ir/be/benode.c +++ b/ir/be/benode.c @@ -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; } /* -- 2.20.1