diff options
Diffstat (limited to 'nuttx/drivers/wireless/cc3000/spi.c')
-rw-r--r-- | nuttx/drivers/wireless/cc3000/spi.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/nuttx/drivers/wireless/cc3000/spi.c b/nuttx/drivers/wireless/cc3000/spi.c index 08734a10a..38d5f413e 100644 --- a/nuttx/drivers/wireless/cc3000/spi.c +++ b/nuttx/drivers/wireless/cc3000/spi.c @@ -195,7 +195,6 @@ static void *unsoliced_thread_func(void *parameter) void SpiOpen(gcSpiHandleRx pfRxHandler) { - pthread_attr_t attr; int status; DEBUGASSERT(spiconf.cc3000fd == 0); @@ -206,10 +205,7 @@ void SpiOpen(gcSpiHandleRx pfRxHandler) spiconf.cc3000fd = fd; spiconf.run = true; - status = pthread_attr_init(&attr); - DEBUGASSERT(status == 0) - - status = pthread_create(&spiconf.unsoliced_thread, &attr, + status = pthread_create(&spiconf.unsoliced_thread,NULL, unsoliced_thread_func, NULL); DEBUGASSERT(status == 0) } |