diff options
author | Arnd Bergmann <arnd@arndb.de> | 2020-01-07 21:43:59 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-01-08 22:11:00 +0100 |
commit | 30780d086a83332adcd9362281201cee7c3d9d19 (patch) | |
tree | 1e02872759c309de12d5f8de7bee6c3eb59f07c1 /crypto | |
parent | macvlan: do not assume mac_header is set in macvlan_broadcast() (diff) | |
download | linux-30780d086a83332adcd9362281201cee7c3d9d19.tar.xz linux-30780d086a83332adcd9362281201cee7c3d9d19.zip |
atm: eni: fix uninitialized variable warning
With -O3, gcc has found an actual unintialized variable stored
into an mmio register in two instances:
drivers/atm/eni.c: In function 'discard':
drivers/atm/eni.c:465:13: error: 'dma[1]' is used uninitialized in this function [-Werror=uninitialized]
writel(dma[i*2+1],eni_dev->rx_dma+dma_wr*8+4);
^
drivers/atm/eni.c:465:13: error: 'dma[3]' is used uninitialized in this function [-Werror=uninitialized]
Change the code to always write zeroes instead.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions