]> git.baikalelectronics.ru Git - kernel.git/commit
cxgb4: clean up a type issue
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 8 Oct 2014 13:44:34 +0000 (16:44 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 8 Oct 2014 20:08:04 +0000 (16:08 -0400)
commit952cd7be1d4ce1e4c2226510ba9cb248b1a48692
tree8a95c05fe5d9fb2730c628ada6d953b31479e431
parent9ce57ae9798cc413f395335f3aa7f88d73599184
cxgb4: clean up a type issue

The tx_desc struct holds 8 __be64 values.  The original code in
ring_tx_db() took a tx_desc pointer then casted it to an int pointer and
then casted it to a u64 pointer.  It was confusing and triggered some
static checker warnings.

I have changed the cxgb_pio_copy() function to only take tx_desc
pointers.  This isn't really a loss of flexibility because anything else
was buggy to begin with.

I also removed the casting on the destination pointer since that was
unnecessary and a bit messy.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4/sge.c