diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2015-08-10 12:26:32 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-08-12 14:31:07 -0700 |
commit | c3ffe0ca4a75ec1b5183e6141bed4dfcde4309fb (patch) | |
tree | 2198448532baa8510429fb8abb1a40f630add7b2 /drivers/net/ethernet/altera/altera_sgdmahw.h | |
parent | adc6310ca49e2c007e1a86ff11a4c215687116d4 (diff) | |
download | linux-c3ffe0ca4a75ec1b5183e6141bed4dfcde4309fb.tar.gz linux-c3ffe0ca4a75ec1b5183e6141bed4dfcde4309fb.tar.bz2 linux-c3ffe0ca4a75ec1b5183e6141bed4dfcde4309fb.zip |
net: eth: altera: Remove sgdmadesclen member from altera_tse_private
altera_tse_private->sgdmadesclen is always assigned assigned the same
value and never changes during runtime. Remove the struct member and
use a new define for sizeof(struct sgdma_descrip) instead.
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/altera/altera_sgdmahw.h')
-rw-r--r-- | drivers/net/ethernet/altera/altera_sgdmahw.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/altera/altera_sgdmahw.h b/drivers/net/ethernet/altera/altera_sgdmahw.h index 85bc33b218d9..bbd52f02330b 100644 --- a/drivers/net/ethernet/altera/altera_sgdmahw.h +++ b/drivers/net/ethernet/altera/altera_sgdmahw.h @@ -50,6 +50,7 @@ struct sgdma_descrip { u8 control; } __packed; +#define SGDMA_DESC_LEN sizeof(struct sgdma_descrip) #define SGDMA_STATUS_ERR BIT(0) #define SGDMA_STATUS_LENGTH_ERR BIT(1) |