summaryrefslogtreecommitdiff
path: root/linux-core/drm_init.c
diff options
context:
space:
mode:
authorJon Smirl <jonsmirl@yahoo.com>2004-09-30 21:12:10 +0000
committerJon Smirl <jonsmirl@yahoo.com>2004-09-30 21:12:10 +0000
commit9f9a8f1382711a05ec000b639d971b619d8bc305 (patch)
treea7ee85ea5c3077310731d7d9b038de60e79eb4ee /linux-core/drm_init.c
parent368493edc9e47ce63edf955e9fa9d096500c4e8e (diff)
Lindent of core build. Drivers checked for no binary diffs. A few files
weren't Lindent's because their comments didn't convert very well. A bunch of other minor clean up with no code implact included.
Diffstat (limited to 'linux-core/drm_init.c')
-rw-r--r--linux-core/drm_init.c37
1 files changed, 23 insertions, 14 deletions
diff --git a/linux-core/drm_init.c b/linux-core/drm_init.c
index f359b8d8..65413474 100644
--- a/linux-core/drm_init.c
+++ b/linux-core/drm_init.c
@@ -1,5 +1,5 @@
/**
- * \file drm_init.h
+ * \file drm_init.h
* Setup/Cleanup for DRM
*
* \author Rickard E. (Rik) Faith <faith@valinux.com>
@@ -55,10 +55,14 @@ static void drm_parse_option(char *s)
char *c, *r;
DRM_DEBUG("\"%s\"\n", s);
- if (!s || !*s) return;
- for (c = s; *c && *c != ':'; c++); /* find : or \0 */
- if (*c) r = c + 1; else r = NULL; /* remember remainder */
- *c = '\0'; /* terminate */
+ if (!s || !*s)
+ return;
+ for (c = s; *c && *c != ':'; c++) ; /* find : or \0 */
+ if (*c)
+ r = c + 1;
+ else
+ r = NULL; /* remember remainder */
+ *c = '\0'; /* terminate */
if (!strcmp(s, "debug")) {
drm_flags |= DRM_FLAG_DEBUG;
DRM_INFO("Debug messages ON\n");
@@ -70,7 +74,7 @@ static void drm_parse_option(char *s)
/**
* Parse the insmod "drm_opts=" options, or the command-line
- * options passed to the kernel via LILO.
+ * options passed to the kernel via LILO.
*
* \param s contains option_list without the 'drm_opts=' part.
*
@@ -101,14 +105,18 @@ void drm_parse_options(char *s)
{
char *h, *t, *n;
- DRM_DEBUG("\"%s\"\n", s ?: "");
- if (!s || !*s) return;
+ DRM_DEBUG("\"%s\"\n", s ? : "");
+ if (!s || !*s)
+ return;
for (h = t = n = s; h && *h; h = n) {
- for (; *t && *t != ';'; t++); /* find ; or \0 */
- if (*t) n = t + 1; else n = NULL; /* remember next */
- *t = '\0'; /* terminate */
- drm_parse_option(h); /* parse */
+ for (; *t && *t != ';'; t++) ; /* find ; or \0 */
+ if (*t)
+ n = t + 1;
+ else
+ n = NULL; /* remember next */
+ *t = '\0'; /* terminate */
+ drm_parse_option(h); /* parse */
}
}
@@ -120,10 +128,11 @@ void drm_parse_options(char *s)
int drm_cpu_valid(void)
{
#if defined(__i386__)
- if (boot_cpu_data.x86 == 3) return 0; /* No cmpxchg on a 386 */
+ if (boot_cpu_data.x86 == 3)
+ return 0; /* No cmpxchg on a 386 */
#endif
#if defined(__sparc__) && !defined(__sparc_v9__)
- return 0; /* No cmpxchg before v9 sparc. */
+ return 0; /* No cmpxchg before v9 sparc. */
#endif
return 1;
}