From 01f3576a9dfc1d511e36f3e89acc776171237fad Mon Sep 17 00:00:00 2001 From: mmdolze Date: Tue, 11 May 2010 20:56:22 +0000 Subject: [PATCH] Small code reformatting. --- server/drivers/hd44780.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/server/drivers/hd44780.c b/server/drivers/hd44780.c index 1027052..33c0d29 100644 --- a/server/drivers/hd44780.c +++ b/server/drivers/hd44780.c @@ -187,10 +187,11 @@ HD44780_init(Driver *drvthis) // Get and search for the connection type s = drvthis->config_get_string(drvthis->name, "ConnectionType", 0, "4bit"); for (i = 0; (connectionMapping[i].name != NULL) && - (strcasecmp(s, connectionMapping[i].name) != 0); i++); - if (connectionMapping[i].name == NULL) { - report(RPT_ERR, "%s: unknown ConnectionType: %s", drvthis->name, s); - return -1; // fatal error + (strcasecmp(s, connectionMapping[i].name) != 0); i++) + ; + if (connectionMapping[i].name == NULL) { + report(RPT_ERR, "%s: unknown ConnectionType: %s", drvthis->name, s); + return -1; // fatal error } else { /* set connection type */ p->connectiontype = connectionMapping[i].connectiontype;