From: Chihau Chau Date: Mon, 15 Mar 2010 03:44:54 +0000 (-0300) Subject: Staging: dream: smd: smd_qmi: fix code style issues X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=17e7b137df499a9d6c9c69dd28d427e6117aa17c;p=linux-beck.git Staging: dream: smd: smd_qmi: fix code style issues This fixes some code style issues about to #include instead of and some not necessary braces {}. Signed-off-by: Chihau Chau Acked-by: Pavel Machek Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/dream/smd/smd_qmi.c b/drivers/staging/dream/smd/smd_qmi.c index 687db142904c..9e9067fb271b 100644 --- a/drivers/staging/dream/smd/smd_qmi.c +++ b/drivers/staging/dream/smd/smd_qmi.c @@ -25,7 +25,7 @@ #include #include -#include +#include #include #define QMI_CTL 0x00 @@ -643,11 +643,10 @@ static int qmi_print_state(struct qmi_ctxt *ctxt, char *buf, int max) } i = scnprintf(buf, max, "STATE=%s\n", statename); - i += scnprintf(buf + i, max - i, "CID=%d\n",ctxt->wds_client_id); + i += scnprintf(buf + i, max - i, "CID=%d\n", ctxt->wds_client_id); - if (ctxt->state != STATE_ONLINE){ + if (ctxt->state != STATE_ONLINE) return i; - } i += scnprintf(buf + i, max - i, "ADDR=%d.%d.%d.%d\n", ctxt->addr[0], ctxt->addr[1], ctxt->addr[2], ctxt->addr[3]);