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

View File

@ -318,13 +318,15 @@ static int lis3dsh_interrupt_handler(int irq, FAR void *context)
* SPI bus from within an interrupt.
*/
if(work_available(&priv->work)) {
ret = work_queue(HPWORK, &priv->work, lis3dsh_worker, priv, 0);
if (ret < 0) {
snerr("ERROR: Failed to queue work: %d\n", ret);
return ret;
if (work_available(&priv->work))
{
ret = work_queue(HPWORK, &priv->work, lis3dsh_worker, priv, 0);
if (ret < 0)
{
snerr("ERROR: Failed to queue work: %d\n", ret);
return ret;
}
}
}
return OK;
}