diff options
author | Dan Carpenter | 2014-10-08 16:44:34 +0300 |
---|---|---|
committer | David S. Miller | 2014-10-08 16:08:04 -0400 |
commit | fb5ac0de10ed49f9a18f47ec6d2edf359811ba58 (patch) | |
tree | 8a95c05fe5d9fb2730c628ada6d953b31479e431 /include/linux | |
parent | 9fef84780348bbc01b14c1a0f88440ee67cfddfe (diff) |
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>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions