From b1f8bfea65183b4575e3dde64641f7340a3dfa38 Mon Sep 17 00:00:00 2001 From: Johan Hovold Date: Fri, 29 Apr 2016 17:08:35 +0200 Subject: [PATCH] greybus: loopback: remove unsupported version request 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 Signed-off-by: Greg Kroah-Hartman --- drivers/staging/greybus/loopback.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/staging/greybus/loopback.c b/drivers/staging/greybus/loopback.c index 5e009e1955ab..ccb2799c3b0a 100644 --- a/drivers/staging/greybus/loopback.c +++ b/drivers/staging/greybus/loopback.c @@ -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; -- 2.39.5