From 615f93a3d03d40924365061c6ae242240dd0ab7e Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Tue, 1 Nov 2011 14:57:41 -0700 Subject: Remove unnecessary variable rtrn in XkbKeysymText Also removes even more unnecessary use of variable assignment inside function arguments. Signed-off-by: Alan Coopersmith Reviewed-by: Daniel Stone --- xkb/xkbtext.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/xkb/xkbtext.c b/xkb/xkbtext.c index 1ba10a194..b3930f895 100644 --- a/xkb/xkbtext.c +++ b/xkb/xkbtext.c @@ -334,12 +334,12 @@ static char *buf; char * XkbKeysymText(KeySym sym,unsigned format) { -static char buf[32],*rtrn; +static char buf[32]; if (sym==NoSymbol) - strcpy(rtrn=buf,"NoSymbol"); - else sprintf(rtrn=buf, "0x%lx", (long)sym); - return rtrn; + strcpy(buf,"NoSymbol"); + else sprintf(buf, "0x%lx", (long)sym); + return buf; } char * -- cgit v1.2.3