Rev 4311 | Rev 4329 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4311 | Rev 4313 | ||
---|---|---|---|
Line 181... | Line 181... | ||
181 | 181 | ||
182 | ski_instance_t *skiin_init(void) |
182 | ski_instance_t *skiin_init(void) |
183 | { |
183 | { |
184 | ski_init(); |
184 | ski_init(); |
185 | 185 | ||
186 | ski_instance_t *instance |
186 | ski_instance_t *instance = |
187 | = malloc(sizeof(ski_instance_t), FRAME_ATOMIC); |
187 | malloc(sizeof(ski_instance_t), FRAME_ATOMIC); |
188 | 188 | ||
189 | if (instance) { |
189 | if (instance) { |
190 | instance->thread = thread_create(kskipoll, (void *) instance, TASK, 0, "kskipoll", true); |
190 | instance->thread = thread_create(kskipoll, instance, TASK, 0, |
- | 191 | "kskipoll", true); |
|
191 | 192 | ||
192 | if (!instance->thread) { |
193 | if (!instance->thread) { |
193 | free(instance); |
194 | free(instance); |
194 | return NULL; |
195 | return NULL; |
195 | } |
196 | } |