Commit 31ca128d authored by Eli Billauer's avatar Eli Billauer Committed by Greg Kroah-Hartman

staging: xillybus: Removed unnecessary error message

Suggested-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarEli Billauer <eli.billauer@gmail.com>
Reviewed-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 2531f6cc
...@@ -438,14 +438,14 @@ static int xilly_setupchannels(struct xilly_endpoint *ep, ...@@ -438,14 +438,14 @@ static int xilly_setupchannels(struct xilly_endpoint *ep,
sizeof(struct xilly_channel), GFP_KERNEL); sizeof(struct xilly_channel), GFP_KERNEL);
if (!channel) if (!channel)
goto memfail; return -ENOMEM;
ep->channels = devm_kcalloc(dev, ep->num_channels + 1, ep->channels = devm_kcalloc(dev, ep->num_channels + 1,
sizeof(struct xilly_channel *), sizeof(struct xilly_channel *),
GFP_KERNEL); GFP_KERNEL);
if (!ep->channels) if (!ep->channels)
goto memfail; return -ENOMEM;
ep->channels[0] = NULL; /* Channel 0 is message buf. */ ep->channels[0] = NULL; /* Channel 0 is message buf. */
...@@ -522,7 +522,7 @@ static int xilly_setupchannels(struct xilly_endpoint *ep, ...@@ -522,7 +522,7 @@ static int xilly_setupchannels(struct xilly_endpoint *ep,
GFP_KERNEL); GFP_KERNEL);
if (!buffers) if (!buffers)
goto memfail; return -ENOMEM;
} else { } else {
bytebufsize = bufsize << 2; bytebufsize = bufsize << 2;
} }
...@@ -557,7 +557,7 @@ static int xilly_setupchannels(struct xilly_endpoint *ep, ...@@ -557,7 +557,7 @@ static int xilly_setupchannels(struct xilly_endpoint *ep,
} }
if (rc) if (rc)
goto memfail; return -ENOMEM;
} }
if (!msg_buf_done) { if (!msg_buf_done) {
...@@ -566,11 +566,6 @@ static int xilly_setupchannels(struct xilly_endpoint *ep, ...@@ -566,11 +566,6 @@ static int xilly_setupchannels(struct xilly_endpoint *ep,
return -ENODEV; return -ENODEV;
} }
return 0; return 0;
memfail:
dev_err(ep->dev,
"Failed to assign DMA buffer memory. Aborting.\n");
return -ENOMEM;
} }
static void xilly_scan_idt(struct xilly_endpoint *endpoint, static void xilly_scan_idt(struct xilly_endpoint *endpoint,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment