greybus: loopback: remove unsupported version request
authorJohan Hovold <johan@hovoldconsulting.com>
Fri, 29 Apr 2016 15:08:35 +0000 (17:08 +0200)
committerGreg Kroah-Hartman <gregkh@google.com>
Fri, 29 Apr 2016 21:27:05 +0000 (14:27 -0700)
Remove the unsupported version request from the loopback-driver request
handler.

Unsupported requests are already handled and logged using the default
case.

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

index 5e009e1955abd6dd46cec8b46278f4e460c39f23..ccb2799c3b0aff5b9f02b176f23b82df01522405 100644 (file)
@@ -800,9 +800,6 @@ static int gb_loopback_request_handler(struct gb_operation *operation)
 
        /* By convention, the AP initiates the version operation */
        switch (operation->type) {
-       case GB_REQUEST_TYPE_PROTOCOL_VERSION:
-               dev_err(dev, "module-initiated version operation\n");
-               return -EINVAL;
        case GB_LOOPBACK_TYPE_PING:
        case GB_LOOPBACK_TYPE_SINK:
                return 0;