summaryrefslogtreecommitdiff
path: root/crypto/rsa_helper.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2020-01-07 21:43:59 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-02-05 13:03:36 +0000
commit104c94d7a0316a81cee8c16995e0d918f952f7da (patch)
tree492c7931048d0d7aab51b20efe3262129fa32c95 /crypto/rsa_helper.c
parentb6547a7db83929a457adad01a97eaf70c9a76dd6 (diff)
atm: eni: fix uninitialized variable warning
[ Upstream commit 30780d086a83332adcd9362281201cee7c3d9d19 ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'crypto/rsa_helper.c')
0 files changed, 0 insertions, 0 deletions