lis3dsh.c edited to obey the nuttx coding standard.

This commit is contained in:
Florian Olbrich
2017-09-14 20:29:41 +00:00
parent 81b599e8ae
commit 6f57d1d472
+4 -2
View File
@@ -318,9 +318,11 @@ static int lis3dsh_interrupt_handler(int irq, FAR void *context)
* SPI bus from within an interrupt. * SPI bus from within an interrupt.
*/ */
if(work_available(&priv->work)) { if (work_available(&priv->work))
{
ret = work_queue(HPWORK, &priv->work, lis3dsh_worker, priv, 0); ret = work_queue(HPWORK, &priv->work, lis3dsh_worker, priv, 0);
if (ret < 0) { if (ret < 0)
{
snerr("ERROR: Failed to queue work: %d\n", ret); snerr("ERROR: Failed to queue work: %d\n", ret);
return ret; return ret;
} }