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>
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. */