greybus: operation: drop redundant oom message
Drop redundant OOM message, which would already have been logged by the memory subsystem. Also remove a FIXME about possibly sending a pre-allocated response, which is neither possible or desirable. If we ever run out of memory we have bigger problems then getting a response back to firmware. Signed-off-by: Johan Hovold <johan@hovoldconsulting.com> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
parent
2593261d5c
commit
1635304d63
@ -673,12 +673,8 @@ static int gb_operation_response_send(struct gb_operation *operation,
|
||||
return 0;
|
||||
|
||||
if (!operation->response) {
|
||||
if (!gb_operation_response_alloc(operation, 0)) {
|
||||
dev_err(&connection->dev,
|
||||
"error allocating response\n");
|
||||
/* XXX Respond with pre-allocated -ENOMEM? */
|
||||
if (!gb_operation_response_alloc(operation, 0))
|
||||
return -ENOMEM;
|
||||
}
|
||||
}
|
||||
|
||||
/* Reference will be dropped when message has been sent. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user