hardware/intel/common/libva
修訂 | c9005f89e43f56c58e2269a896eb3b6c3bb2bc32 (tree) |
---|---|
時間 | 2017-06-12 14:52:11 |
作者 | Giuseppe <giuscri@gmai...> |
Commiter | Xiang, Haihao |
Fix small typos.
/etc/libav.conf was spelled incorrectly,
some lines were bad indented because of
mixed tabs and spaces.
Signed-off-by: Giuseppe <giuscri@gmail.com>
(cherry picked from commit 5f93344df466a81ba1388ae6802bb55d1fbad0b2)
@@ -60,7 +60,7 @@ | ||
60 | 60 | |
61 | 61 | /* |
62 | 62 | * read a config "env" for libva.conf or from environment setting |
63 | - * liva.conf has higher priority | |
63 | + * libva.conf has higher priority | |
64 | 64 | * return 0: the "env" is set, and the value is copied into env_value |
65 | 65 | * 1: the env is not set |
66 | 66 | */ |
@@ -75,13 +75,13 @@ int va_parseConfig(char *env, char *env_value) | ||
75 | 75 | |
76 | 76 | fp = fopen("/etc/libva.conf", "r"); |
77 | 77 | while (fp && (fgets(oneline, 1024, fp) != NULL)) { |
78 | - if (strlen(oneline) == 1) | |
79 | - continue; | |
78 | + if (strlen(oneline) == 1) | |
79 | + continue; | |
80 | 80 | token = strtok_r(oneline, "=\n", &saveptr); |
81 | - value = strtok_r(NULL, "=\n", &saveptr); | |
81 | + value = strtok_r(NULL, "=\n", &saveptr); | |
82 | 82 | |
83 | - if (NULL == token || NULL == value) | |
84 | - continue; | |
83 | + if (NULL == token || NULL == value) | |
84 | + continue; | |
85 | 85 | |
86 | 86 | if (strcmp(token, env) == 0) { |
87 | 87 | if (env_value) { |