[dahdi-commits] sruffell: linux/trunk r6121 - /linux/trunk/drivers/dahdi/voicebus.c
SVN commits to the DAHDI project
dahdi-commits at lists.digium.com
Wed Mar 11 09:50:46 CDT 2009
Author: sruffell
Date: Wed Mar 11 09:50:43 2009
New Revision: 6121
URL: http://svn.digium.com/svn-view/dahdi?view=rev&rev=6121
Log:
Removing assignement in condition.
Modified:
linux/trunk/drivers/dahdi/voicebus.c
Modified: linux/trunk/drivers/dahdi/voicebus.c
URL: http://svn.digium.com/svn-view/dahdi/linux/trunk/drivers/dahdi/voicebus.c?view=diff&rev=6121&r1=6120&r2=6121
==============================================================================
--- linux/trunk/drivers/dahdi/voicebus.c (original)
+++ linux/trunk/drivers/dahdi/voicebus.c Wed Mar 11 09:50:43 2009
@@ -880,7 +880,8 @@
if (!vb_is_stopped(vb))
return -EBUSY;
- if ((ret=vb_reset_interface(vb)))
+ ret = vb_reset_interface(vb);
+ if (ret)
return ret;
/* We must set up a minimum of three buffers to start with, since two
@@ -1426,10 +1427,12 @@
goto cleanup;
}
- if ((retval = vb_initialize_tx_descriptors(vb)))
+ retval = vb_initialize_tx_descriptors(vb);
+ if (retval)
goto cleanup;
- if ((retval = vb_initialize_rx_descriptors(vb)))
+ retval = vb_initialize_rx_descriptors(vb);
+ if (retval)
goto cleanup;
/* ----------------------------------------------------------------
More information about the dahdi-commits
mailing list