From: Johan Hovold Date: Fri, 29 Apr 2016 15:08:35 +0000 (+0200) Subject: greybus: loopback: remove unsupported version request X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b1f8bfea65183b4575e3dde64641f7340a3dfa38;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 --- 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;