lis3dsh.c edited to obey the nuttx coding standard.
This commit is contained in:
parent
81b599e8ae
commit
6f57d1d472
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user