linux/drivers/net/ethernet/altera
Tobias Klauser 1b4448815e 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>
2014-04-30 16:12:21 -04:00
..
altera_msgdma.c Altera TSE: Work around unaligned DMA receive packet issue with Altera SGDMA 2014-04-26 12:26:26 -04:00
altera_msgdma.h Altera TSE: Work around unaligned DMA receive packet issue with Altera SGDMA 2014-04-26 12:26:26 -04:00
altera_msgdmahw.h
altera_sgdma.c Altera TSE: Fix DMA secriptor length initialization 2014-04-30 16:12:21 -04:00
altera_sgdma.h Altera TSE: Work around unaligned DMA receive packet issue with Altera SGDMA 2014-04-26 12:26:26 -04:00
altera_sgdmahw.h
altera_tse.h Altera TSE: Set the Pause Quanta value to the IEEE default value 2014-04-26 12:26:26 -04:00
altera_tse_ethtool.c Altera TSE: Change driver name used by Ethtool 2014-04-26 12:26:26 -04:00
altera_tse_main.c Altera TSE: Fix Panic in probe routine when phy probe fails 2014-04-26 12:26:26 -04:00
altera_utils.c Altera TSE: Add Miscellaneous Files for Altera Ethernet Driver 2014-03-17 21:26:57 -04:00
altera_utils.h Altera TSE: Add Miscellaneous Files for Altera Ethernet Driver 2014-03-17 21:26:57 -04:00
Kconfig Altera TSE: Add Altera Ethernet Driver Makefile and Kconfig 2014-03-17 21:26:57 -04:00
Makefile Altera TSE: Add Altera Ethernet Driver Makefile and Kconfig 2014-03-17 21:26:57 -04:00