diff options
author | Tobias Klauser <tobias.klauser@gmail.com> | 2014-04-28 23:23:01 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-04-30 22:12:21 +0200 |
commit | 1b4448815ee746f878ca4c6b8fffa23441f6d16c (patch) | |
tree | f0208c5a1c25ad413c60ae2d1631bb255664cf0e /tools | |
parent | net: bonding: Fix format string mismatch in bond_sysfs.c (diff) | |
download | linux-1b4448815ee746f878ca4c6b8fffa23441f6d16c.tar.xz linux-1b4448815ee746f878ca4c6b8fffa23441f6d16c.zip |
Altera TSE: Fix DMA secriptor length initialization
sgdma_descrip is a function name as well as the name of a struct. In
sgdma_initialize(), we should initialize the descriptor length field
with the actual length of a descriptor not with the size of the
function. In order to prevent such things from happening in the future,
rename the function to sgdma_setup_descrip().
Found by sparse which yields the following warning:
drivers/net/ethernet/altera/altera_sgdma.c:74:30: warning: expression using sizeof on a function
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions