greybus: operation: drop OOM-response FIXME
authorJohan Hovold <johan@hovoldconsulting.com>
Tue, 13 Oct 2015 17:10:22 +0000 (19:10 +0200)
committerGreg Kroah-Hartman <gregkh@google.com>
Wed, 14 Oct 2015 19:01:15 +0000 (12:01 -0700)
Drop FIXME about sending responses in OOM situations.

If we fail to allocate an operation for an incoming request, we have
bigger problems than to worry about sending a response.

Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/operation.c

index fae6ee9..969309e 100644 (file)
@@ -828,7 +828,7 @@ static void gb_connection_recv_request(struct gb_connection *connection,
                                                type, data, size);
        if (!operation) {
                dev_err(&connection->dev, "can't create operation\n");
-               return;         /* XXX Respond with pre-allocated ENOMEM */
+               return;
        }
 
        ret = gb_operation_get_active(operation);