Commit 17e7b137 authored by Chihau Chau's avatar Chihau Chau Committed by Greg Kroah-Hartman

Staging: dream: smd: smd_qmi: fix code style issues

This fixes some code style issues about to #include <linux/uaccess.h>
instead of <asm/uaccess.h> and some not necessary braces {}.
Signed-off-by: default avatarChihau Chau <chihau@gmail.com>
Acked-by: default avatarPavel Machek <pavel@ucw.cz>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent b761cbb5
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
#include <linux/miscdevice.h> #include <linux/miscdevice.h>
#include <linux/workqueue.h> #include <linux/workqueue.h>
#include <asm/uaccess.h> #include <linux/uaccess.h>
#include <mach/msm_smd.h> #include <mach/msm_smd.h>
#define QMI_CTL 0x00 #define QMI_CTL 0x00
...@@ -643,11 +643,10 @@ static int qmi_print_state(struct qmi_ctxt *ctxt, char *buf, int max) ...@@ -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, 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; return i;
}
i += scnprintf(buf + i, max - i, "ADDR=%d.%d.%d.%d\n", i += scnprintf(buf + i, max - i, "ADDR=%d.%d.%d.%d\n",
ctxt->addr[0], ctxt->addr[1], ctxt->addr[2], ctxt->addr[3]); ctxt->addr[0], ctxt->addr[1], ctxt->addr[2], ctxt->addr[3]);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment