mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-29 13:53:33 +00:00
net: netcp: Fix an error message
[ Upstream commitddb6e00f84
] 'ret' is known to be 0 here. The expected error code is stored in 'tx_pipe->dma_queue', so use it instead. While at it, switch from %d to %pe which is more user friendly. Fixes:84640e27f2
("net: netcp: Add Keystone NetCP core ethernet driver") Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
952ab3f9f4
commit
901ead61c9
1 changed files with 1 additions and 1 deletions
|
@ -1364,9 +1364,9 @@ int netcp_txpipe_open(struct netcp_tx_pipe *tx_pipe)
|
|||
tx_pipe->dma_queue = knav_queue_open(name, tx_pipe->dma_queue_id,
|
||||
KNAV_QUEUE_SHARED);
|
||||
if (IS_ERR(tx_pipe->dma_queue)) {
|
||||
ret = PTR_ERR(tx_pipe->dma_queue);
|
||||
dev_err(dev, "Could not open DMA queue for channel \"%s\": %d\n",
|
||||
name, ret);
|
||||
ret = PTR_ERR(tx_pipe->dma_queue);
|
||||
goto err;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue