Staging: et131x: Fix the add_10bit macro

Duh.. we need to preserve the wrap bit when adding.

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
Alan Cox 2009-10-12 15:38:26 +01:00 committed by Greg Kroah-Hartman
parent b9d2dde055
commit 317c68c04d
1 changed files with 1 additions and 1 deletions

View File

@ -223,7 +223,7 @@ typedef union _TXDMA_PR_NUM_DES_t {
extern inline void add_10bit(u32 *v, int n)
{
*v = INDEX10(*v + n);
*v = INDEX10(*v + n) | (*v & ET_DMA10_WRAP);
}
/*