]> git.baikalelectronics.ru Git - kernel.git/commit
net: stmmac: Check return value of alloc_dma_desc_resources()
authorTobias Klauser <tklauser@distanz.ch>
Sat, 22 Feb 2014 12:09:03 +0000 (13:09 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 Feb 2014 23:58:10 +0000 (18:58 -0500)
commitcdd4a11a4b2a370a3ae93dcc3ca7628583df9c0a
treed6088faba94085e47305f6ad6f71e21e222f3d3a
parent9fc3886375b36672901cdbfb98dd657a99695211
net: stmmac: Check return value of alloc_dma_desc_resources()

alloc_dma_desc_resources() returns an error value and the next line
actually checks for it, so assign the return value properly.

Found by the coverity scanner.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Acked-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c